Commit graph

1457 commits

Author SHA1 Message Date
Conny Duck
26b0ad521e upgrade gradle and build tools 2018-09-25 19:05:37 +02:00
Conny Duck
a2eb41900f fix RecentlyNonNull/Nullable warnings 2018-09-22 21:11:18 +02:00
Konrad Pozniak
6fe43c842b update support libs to 28.0.0 final 2018-09-22 17:13:22 +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
Konrad Pozniak
fb4672202d
fix crash when tooting on Android 9 (#856) 2018-09-19 22:36:46 +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
Gian Sass
bfea5119d5 sort custom emojis alphabetically (#853) 2018-09-18 20:46:50 +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
dbb3f4e826
update targetSdkVersion to 28 (#842)
* update targetSdkVersion to 28

* update robolectric to support api 28
2018-09-16 19:23:32 +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
Conny Duck
5621e5d2d4 fix crash when trying to view account with invalid id
closes #848
2018-09-15 21:51:53 +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
669153089a dont hold whole file content in memory when uploading media 2018-09-10 10:00:06 +02:00
Conny Duck
90ef078dd0 update media limits for Mastodon 2.5 2018-09-10 10:00:06 +02:00
Conny Duck
b9ca9a6e97 Merge branch 'kyori19-AbsoluteTime' 2018-09-09 21:48:31 +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
Conny Duck
e86689013d Release 49 2018-09-04 19:06:04 +02:00
Conny Duck
2436099d35 fix links with uppercase letters in scheme not being opened
closes #801
2018-09-04 18:43:06 +02:00
qwazix
d49502f798 Make page margin to truly black for tablets. (#834) 2018-09-04 18:35:17 +02:00
Conny Duck
a57b354247 Merge remote-tracking branch 'origin/master' 2018-09-03 21:29:26 +02:00
Conny Duck
f72e08cae4 fix crash in notifications fragment, save account only when notificationid changed 2018-09-03 21:23:12 +02:00
Konrad Pozniak
aac63441d7
fix image preview rotation in ComposeActivity (#831) 2018-09-03 20:26:35 +02:00
Konrad Pozniak
0b3bee0d15
fix account switching when offline/error (#830) 2018-09-03 20:16:12 +02:00
Konrad Pozniak
95b1a7c61a
Update bitrise badge (#833) 2018-09-03 16:24:39 +02:00
Conny Duck
5131c44e93 fix empty message view showing/hiding at the wrong times 2018-09-02 13:23:36 +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
ff4a8ff4b8 update deps 2018-08-31 20:40:40 +02:00
Conny Duck
a0b626bff0 remove ACCESS_COARSE_LOCATION for API levels 23+ 2018-08-29 22:20:23 +02:00
Conny Duck
90c6eb1f3c improve wording of "always show sensitive media" setting title 2018-08-29 19:16:41 +02:00
Conny Duck
cef4c6053d correctly hide the loading indicator when instance returns an error on login 2018-08-28 18:47:12 +02:00
Konrad Pozniak
b579a9baea
fix notification tab loading bottom notifications forever (#807) 2018-08-26 21:10:38 +02:00
Conny Duck
1d28f4728f fix crash in EditProfileViewModel 2018-08-26 12:41:26 +02:00
ButterflyOfFire
1f75ef7b2b Fixing typo in arabic. (#802) 2018-08-25 00:01:58 +02:00
Conny Duck
a8bd468190 dont load header images in their full size 2018-08-24 23:13:28 +02:00
Conny Duck
4845a54821 Release 48 2018-08-24 20:38:34 +02:00
Conny Duck
1fef8c0c2b fix crash in NotificationsFragment when Preferences are first accessed
fixes #797
2018-08-24 19:47:27 +02:00
Conny Duck
d1630d11bd update screenshot 2018-08-24 19:42:48 +02:00
Conny Duck
218dc07b85 Release 47 2018-08-23 21:11:29 +02:00
Conny Duck
8a1ac685c8 fix activity transitions (this time for real) 2018-08-23 21:06:49 +02:00
Levi Bard
bfb82bb10c Separate saved draft visibility from default reply visibility: #772 (#787) 2018-08-23 20:50:50 +02:00
Konrad Pozniak
e89f8cf3ee
wait for EmojiCompat to be initialized before using it (#791) 2018-08-23 20:44:25 +02:00
Konrad Pozniak
791a87e7a1
fix repeating toots in timelines (#789) 2018-08-22 21:19:56 +02:00
Konrad Pozniak
4653b1e37b
fix notification tab loading (#777)
* fix progressbars of footer and fragment overlapping

* add progressbar to bottom of notification list again

* fix bottom loading getting stuck sometimes
2018-08-22 21:18:56 +02:00
Basix
4d16514851 Added Korean Translation (#783)
* Added Korean Translation

* Edited translation errors discovered by @Kjwon15

https://github.com/tuskyapp/Tusky/pull/782#pullrequestreview-147631374

* Removed a slash at line 43

https://github.com/tuskyapp/Tusky/pull/783#discussion_r211258208
2018-08-20 21:28:20 +02:00
Óliver García Albertos
a6ded17e06 values-es: Update translations (#785) 2018-08-20 21:27:27 +02:00
kyori
589188e27d Prevent creating new object in setCreatedAt 2018-08-20 22:51:30 +09:00