Commit Graph

660 Commits

Author SHA1 Message Date
ButterflyOfFire ecd954de0d Update french translation (#924)
Update french translation.
2018-11-19 10:53:15 +01:00
Evgeny Petrov 557a0c9d5f RU: Added missing string (#921) 2018-11-18 13:17:24 +01:00
Conny Duck 25a73620a9 update german translation 2018-11-18 11:34:06 +01:00
Conny Duck f3fc9830d4 fix untranslateable String in Account preferences 2018-11-17 15:53:46 +01:00
Evgeny Petrov 0acaa61254 Russian translation update (#919)
* Russian translation update

* Removed duplicate string
2018-11-16 18:30:48 +01:00
Conny Duck 81bbac9aa7 remove erroneous strings to prevent crashes 2018-11-16 13:57:35 +01:00
kyori19 35f4512e6c Improve japanese translation. (#917) 2018-11-13 20:02:19 +01:00
Kévin Commaille 7a06ebffad Update and fix french translation (#914) 2018-11-12 21:42:21 +01:00
Konrad Pozniak 348c20c792
New settings (#891)
* change drawer items

* rename SettingsActivity

* introduce AccountSettings activity

* improve account settings, move notification settings

* sync settings with server

* rename settings back to preferences

* add functionality for settings

* move mediaPreviewEnabled preference to AccountPreferences

* replace shared prefs with accountmanager

* move PreferencesFragment to support library

* split preferences fragment into smaller fragments,
merge AccountPreferencesActivity into PreferencesFragment

* adjust icon size, add icons to general preferences

* change mediaPreviewEnabled and alwaysShowSensitiveMedia pref position

* add database migration

* remove pullNotificationCheckInterval option

* fix  preference in TimelineFragment

* Update Chinese translations. (#915)

* Update zh-CN translations.

* Update zh-SG translations.

* Update zh-TW translations.

* Update zh-MO translations.

* Update zh-HK translations.

* Fix errors in zh-CN translations.

* Fix errors in zh-SG translations.

* Fix errors in zh-TW translations.

* Fix errors in zh-MO translations.

* Fix errors in zh-HK translations.
2018-11-12 21:09:39 +01:00
Levi Bard 690e612f8b Media description improvements (#898)
* Enforce 420-character limit on media descriptions in the UI

* Persist media descriptions with drafts

* Defer media description update until after upload finishes

* Make description field 2 lines for better visibility of hint text

* Reuse Gson instance

* Force retranslation of modified string "hint_describe_for_visually_impaired"

* Add bounds check when reading serialized media descriptions
2018-11-11 19:25:45 +01:00
Levi Bard 6960d725a3 Add menu item to copy media link (#895) 2018-11-01 15:13:37 +01:00
Levi Bard 4ba6b4adfe Fix media transitions, reduce code duplication between media fragments (#894)
* Fix media transitions, reduce code duplication between media fragments

* Remove redundant helper

* Fix occasional crash when swiping between mixed media

* Hide controls when swiping between media
2018-11-01 14:52:22 +01:00
Manimaran.K 1792a14bb0 Tamil translation (#890)
* Translation for Tamil language is done.

* Update Translation for Tamil
2018-11-01 14:51:59 +01:00
ButterflyOfFire fd782ff172 Improve french translation 2018-10-31 17:04:49 +01:00
charlag 211326f6bd Formatted translation 2018-10-31 16:19:09 +01:00
charlag 8c154a96be Merge branch 'patch-3' of git://github.com/BoFFire/Tusky into BoFFire-patch-3 2018-10-31 16:17:43 +01:00
charlag abd1816275 Format translation 2018-10-31 16:10:35 +01:00
Quentí 10cbaec755
[i18n] Occitan update 2018-10-28 00:28:39 +02:00
ButterflyOfFire 9ee0e680da
Update strings.xml 2018-10-27 23:44:25 +02:00
ButterflyOfFire bd93167b5c
Improving arabic translation
Improving arabic العربية translation and 100% translated. Enjoy !
2018-10-27 23:29:47 +02:00
charlag 9caed9aff8 Reformat translation 2018-10-27 18:50:02 +02:00
Sylke Vicious ca1c46c567
Fixed the unescaped aphostrope
Sorry, missed this one!
2018-10-26 16:10:01 +02:00
Sylke Vicious e787deafd5
Updated italian translation 2018-10-26 15:55:32 +02:00
Levi Bard 952d2a6512 Refactor media views (#866)
* Migrate ImagePagerAdapter to kotlin

* Migrate ViewMediaFragment to kotlin

* Make images and videos share the same activity/pager

* Show descriptions above videos

* Cleanup

* Address code review feedback

* Migrate media fragments to constraint layout
2018-10-15 19:56:11 +02:00
Paul 80f485c367 Improve french translation (#887) 2018-10-14 12:58:48 +02:00
mynameismonkey 6fde2888c9 Welsh translation of strings.xml (#877)
* Create values-cy/strings.xml

* removed errant comment line
2018-10-08 20:01:36 +02:00
freetux 6cad8feea2 fix persian translation (#876)
* Create strings.xml

* Rename strings.xml to stringss.xml

* add persian language

* Delete stringss.xml

* fix lines

* fix lines

* fix line 213

* Update strings.xml

* Update strings.xml

* some minor fixes 

after check nightly version fixed .
2018-10-05 21:07:55 +02:00
freetux 7ec8f06589 Add persian language (#870)
* Create strings.xml

* Rename strings.xml to stringss.xml

* add persian language

* Delete stringss.xml

* fix lines

* fix lines

* fix line 213

* Update strings.xml

* Update strings.xml
2018-10-04 23:15:48 +02:00
Ivan Kupalov 6051ffe0b3 Show "remote profile" message. (#873)
* Show "remote profile" message. Closes #806

* Improve remote message look
2018-10-03 21:53:31 +02:00
Ivan Kupalov a0988dc6c6 Add ability to pin/unpin statuses (#872) 2018-10-03 21:27:52 +02:00
Isak Holmström f6934cadd8 update swedish translation (#871)
* Updated with new strings, added new translations for mute

* Changed from nsfw to sensitive content

* translating new strings ++extra fixes
2018-10-03 21:13:30 +02:00
Levi Bard 0bca94b94e Enable sharing media directly from Tusky (#852)
* Extract duplicated code into BaseActivity

* Migrate MediaUtils to kotlin

* Migrate ViewVideoActivity to kotlin

* Migrate ViewMediaActivity to kotlin

* Initial media sharing functionality

* Address code review feedback

* Make share icon match

* Address code review feedback
2018-10-01 11:50:17 +02:00
Prat ab601c4566 Add deletion confirmation (#865) 2018-10-01 08:50:48 +02:00
Konrad Pozniak bf00cfcc4d
style dark dialogs (#864) 2018-09-29 19:44:50 +02:00
Conny Duck 323c58a125 fix actionbar elevation in SearchActivity 2018-09-29 00:14:43 +02:00
Conny Duck a4f9aa3f71 fix build error because of missing resource 2018-09-25 19:47:19 +02:00
Konrad Pozniak 197badb13b fix typo in japanese translation 2018-09-22 17:10:09 +02:00
INAGAKI Hiroshi ec60caa452 l10n: update Japanese translation (#858)
Updated Japanese translations for some new functions.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-09-21 22:11:57 +02:00
Conny Duck 6c06225ae3 fix lists not displaying 2018-09-21 20:18:21 +02:00
HellPie 4759783d10 Add support for collapsible statuses when they exceed 500 characters (#825)
* Update Gradle plugin to work with Android Studio 3.3 Canary

Android Studio 3.1.4 Stable doesn't render layout previews in this project
for whatever reason. Switching to the latest 3.3 Canary release fixes the
issue without affecting Gradle scripts but requires the new Android Gradle
plugin to match the new Android Studio release.

This commit will be reverted once development on the feature is done.

* Update gradle build script to allow installing debug builds alongside store version

This will allow developers, testers, etc to work on Tusky will not having to worry
about overwriting, uninstalling, fiddling with a preinstalled application which would
mean having to login again every time the development cycle starts/finishes and
manually reinstalling the app.

* Add UI changes to support collapsing statuses

The button uses subtle styling to not be distracting like the CW button on the timeline
The button is toggleable, full width to match the status textbox hitbox width and also
is shorter to not be too intrusive between the status text and images, or the post below

* Update status data model to store whether the message has been collapsed

* Update status action listener to notify of collapsed state changing

Provide stubs in all implementing classes and mark as TODO the stubs that
require a proper implementation for the feature to work.

* Add implementation code to handle status collapse/expand in timeline

Code has not been added elsewhere to simplify testing.
Once the code will be considered stable it will be also included in other
status action listener implementers.

* Add preferences so that users can toggle the collapsing of long posts

This is currently limited to a simple toggle, it would be nice to implement
a more advanced UI to offer the user more control over the feature.

* Update Gradle plugin to work with latest Android Studio 3.3 Canary 8

Just like the other commit, this will be reverted once the feature is working.
I simply don't want to deal with what changes in my installation of Android
Studio 3.1.4 Stable which breaks the layout preview rendering.

* Update data models and utils for statuses to better handle collapsing

I forgot that data isn't available from the API and can't really be built
from scratch using existing data due to preferences.
A new, extra boolean should fix the issue.

* Fix search breaking due to newly introduced variables in utils classes

* Fix timeline breaking due to newly introduced variables in utils classes

* Fix item status text for collapsed toggle being shown in the wrong state

* Update timeline fragment to refresh the list when collapsed settings change

* Add support for status content collapse in timeline viewholder

* Fix view holder truncating posts using temporary debug settings at 50 chars

* Add toggle support to notification layout as well

* Add support for collapsed statuses to search results

* Add support for expandable content to notifications too

* Update codebase with some suggested changes by @charlang

* Update more code with more suggestions and move null-safety into view data

* Update even more code with even more suggested code changes

* Revert a0a41ca and 0ee004d (Android Studio 3.1 to Android Studio 3.3 updates)

* Add an input filter utility class to reuse code for trimming statuses

* Update UI of statuses to show a taller collapsible button

* Update notification fragment logging to simplify null checks

* Add smartness to SmartLengthInputFilter such as word trimming and runway

* Fix posts with show more button even if bad ratio didn't collapse

* Fix thread view showing button but not collapsing by implementing the feature

* Fix spannable losing spans when collapsed and restore length to 500 characters

* Remove debug build suffix as per request

* Fix all the merging happened in f66d689, 623cad2 and 7056ba5

* Fix notification button spanning full width rather than content width

* Add a way to access a singleton to smart filter and use clearer code

* Update view holders using smart input filters to use more singletons

* Fix code style lacking spaces before boolean checks in ifs and others

* Remove all code related to collapsibility preferences, strings included

* Update style to match content warning toggle button

* Update strings to give cleaner differentiation between CW and collapse

* Update smart filter code to use fully qualified names to avoid confusion
2018-09-19 19:51:20 +02:00
Conny Duck 17189216e3 remove fake shadow view and replace with elevation in AccountActivity 2018-09-16 19:46:06 +02:00
Konrad Pozniak 4402f3d337
update minSdkVersion to 21 (#843)
* set minSdkVersion to 21

* use elevation instead of additional views for shadow

* clean up code occurrences

* remove drawable compat code

* remove no longer needed resources

* remove unneeded android:clipChildren="false"

* Revert "remove no longer needed resources"

This reverts commit 67a4d6f8d87b3f116b95d90dfb48f350d342f503.

* remove no longer needed resources (this time the right ones)
2018-09-16 18:54:12 +02:00
Evgeny Petrov 16aea96e97 RU: Re-worded "Favourites" string, replaced "NSFW" with "sensitive" (#839) 2018-09-10 19:28:55 +02:00
Conny Duck 90ef078dd0 update media limits for Mastodon 2.5 2018-09-10 10:00:06 +02:00
Conny Duck 51d231834c Merge branch 'AbsoluteTime' of https://github.com/kyori19/Tusky into kyori19-AbsoluteTime
# Conflicts:
#	app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java
2018-09-09 21:48:01 +02:00
Isak Holmström 7134423a05 [SV] Translation: Removed nsfw and replaced it with "sensitive content" (#836)
* Updated with new strings, added new translations for mute

* Changed from nsfw to sensitive content
2018-09-05 21:29:39 +02:00
qwazix d49502f798 Make page margin to truly black for tablets. (#834) 2018-09-04 18:35:17 +02:00
Konrad Pozniak 28c1c90a98
fix account list loading and clean up a lot of code (#823)
* fix account list loading and clean up a lot of code

* remove ACCESS_COARSE_LOCATION for API levels 23+

* small improvements
2018-08-31 21:52:09 +02:00
Conny Duck ca881af7c5 add missing libraries to libraries screen 2018-08-31 20:40:56 +02:00
Conny Duck 90c6eb1f3c improve wording of "always show sensitive media" setting title 2018-08-29 19:16:41 +02:00