Commit Graph

234 Commits

Author SHA1 Message Date
Conny Duck 7309b683cc Release 70 / 10.0 2020-02-25 19:00:21 +01:00
Ivan Kupalov f02fe69b98 Fix emoji download (#1691)
* Update OkHttp to 4.3.1

* Fix downloading emoji fonts

OkHttp strips away content length info when compression is used.
Even though this behavior is old, we didn't observe it until OkHttp was
updated in d05bd4b751.

We get it from the original network response header. It should be
compressed length.

* Reformat EmojiCompatFont and EmojiPreference
2020-02-17 16:23:34 +01:00
Conny Duck e1a6570cf6 put androidExtensions experimental=true back in to fix crash 2020-02-12 21:53:16 +01:00
Conny Duck 4b6744a5b5 Release 69 / 10.0 beta 1 2020-02-10 16:50:35 +01:00
Frieder Bluemle ee2bc75ecf Update espresso-core to 3.2.0 2020-02-01 11:14:31 -08:00
Konrad Pozniak 25e0e73085 fix in app language switching (#1659) 2020-01-30 21:05:24 +01:00
Konrad Pozniak e28463ae7d upgrade dependencies (#1596) 2019-12-20 21:31:41 +01:00
Konrad Pozniak 8aa217c028 upgrade androidx.browser to 1.2.0 (#1595) 2019-12-20 20:08:02 +01:00
Konrad Pozniak d9d2fdbc4b upgrade SparkButton to 3.0.0 (#1594) 2019-12-20 19:52:36 +01:00
Ivan Kupalov 9c59d000f9 ComposeActivity refactor (#1541)
* Convert ComposeActivity to Kotlin

* More ComposeActivity cleanups

* Move ComposeActivity to it's own package

* Remove ComposeActivity.IntentBuilder

* Re-do part of the media downsizing/uploading

* Add sending of status to ViewModel, draft media descriptions

* Allow uploading video, update description after uploading

* Enable camera, enable upload cancelling

* Cleanup of ComposeActivity

* Extract CaptionDialog, extract ComposeActivity methods

* Fix handling of redrafted media

* Add initial state and media uploading out of Activity

* Change ComposeOptions.mentionedUsernames to be Set rather than List

We probably don't want repeated usernames when we are writing a post
and Set provides such guarantee for free plus it tells it to the
callers. The only disadvantage is lack of order but it shouldn't be a
problem.

* Add combineOptionalLiveData. Add docs.

It it useful for nullable LiveData's. I think we cannot differentiate
between value not being set and value being null so I just added the
variant without null check.

* Add poll support to Compose.

* cleanup code

* move more classes into compose package

* cleanup code

* fix button behavior

* add error handling for media upload

* add caching for instance data again

* merge develop

* fix scheduled toots

* delete unused string

* cleanup ComposeActivity

* fix restoring media from drafts

* make media upload code a little bit clearer

* cleanup autocomplete search code

* avoid duplicate object creation in SavedTootActivity

* perf: avoid unnecessary work when initializing ComposeActivity

* add license header to new files

* use small toot button on bigger displays

* fix ComposeActivityTest

* fix bad merge

* use Singles.zip instead of Single.zip
2019-12-19 19:09:40 +01:00
Konrad Pozniak 8a65f91d2c Bookmarks (#1560)
* add bookmarks to timelines

* add Bookmarks to main menu

* cleanup

* handle BookmarkEvent

* fix tests

* fix bookmark handling in NotificationsFragment

* add bookmark accessibility actions
2019-11-19 10:15:32 +01:00
Konrad Pozniak d05bd4b751 update deps, cleanup build file (#1546) 2019-11-06 20:48:58 +01:00
Konrad Pozniak 4d4c4cdb3d Migrate to ViewPager2 (#1544)
* migrate MainActivty to ViewPager2

* migrate AccountActivty to ViewPager2

* migrate ViewMediaActivty to ViewPager2

* migrate SearchActivity to ViewPager2

* checkin missing AccountPagerAdapter file

* remove unused class ImageViewPager

* replace SparseArray with MutableList
2019-11-06 20:17:53 +01:00
Konrad Pozniak c02a8c3a41 add build customization options (#1532) 2019-10-29 20:30:46 +01:00
Konrad Pozniak d5d9af4fde Upgrade api level to Android 10, implement new sharing api (#1537)
* upgrade api level to Android 10, resolve compile errors

* use androidx.preference.PreferenceManager instead of deprecated platform class

* add hyphenation to important TextViews

*  setBottomSheetCallback -> addBottomSheetCallback

* implement new sharing api

* improve TuskyTileService so it shows account picker when multiple accounts are present

* delete unused AccountChooserService

* fix test

* improve ShareShortcutHelper

* remove debug log statement

* improve image loading fallback behavior in ShareShortcutHelper

* improve behavior on foldable devices
2019-10-22 21:18:20 +02:00
Konrad Pozniak 0e920ca8f6 upgrade dependencies (#1535)
* upgrade dependencies

* enable incremental annotation processing for room
2019-10-14 09:56:00 +02:00
Konrad Pozniak 4c81f71afe Refactor theming (#1529)
* fix toolbars

* use toolbar in MainActivity

* update AccountActivity appbar

* update material design library

* remove unneeded tabs styling

* fix black theme
2019-10-12 20:00:29 +02:00
Konrad Pozniak 14ce0c4952 upgrade appcompat, fix nightmode (#1455)
* upgrade appcompat, fix language switching & nightmode

* cleanup ThemeUtils

* upgrade dependencies

* change active boost icon (#1513)

* upgrade jetifier and android gradle plugin

* fix FilterTest
2019-10-03 19:58:21 +02:00
kyori19 dc933b439d Scheduled toot (#1004)
* Scheduled toot

* Hide scheduled toot button if version < 2.7.0

* Fix timeline reloading after toot

* Add edit icon to ComposeScheduleView

* Add button to reset scheduled toot

* Close bottom sheet and change button color after time a was selected

* Fix edit icon's size

* List of scheduled toots

* Fix instance version check

* Use MaterialDatePicker

* Set date and time consecutively

* Add licenses
2019-10-02 21:28:12 +02:00
Conny Duck d72e39a9d2 Release 68 2019-10-01 18:58:55 +02:00
Konrad Pozniak f09deb2975 upgrade autodispose (#1490)
* upgrade autodispose

* set AutoDisposePlugins.setHideProxies to false
2019-09-22 08:19:44 +02:00
Konrad Pozniak 03cd374792 Remove search v1 (#1484)
* remove search v1, convert MastodonApi to Kotlin

* format MastodonApi nicely

* use default params in ConversationRepository

* improve code for LoginActivity
2019-09-22 08:18:44 +02:00
Konrad Pozniak 573568f1c9 upgrade glide (#1489) 2019-09-21 21:35:51 +02:00
Konrad Pozniak fa57694e4a upgrade dependencies (#1488) 2019-09-21 21:35:36 +02:00
Conny Duck 3f8f104d82 Release 67 2019-09-15 09:30:22 +02:00
Conny Duck fd51185a5a release 66 2019-09-09 13:39:36 +02:00
Konrad Pozniak 9c3bd15dfb revert appcompat upgrade in order to fix in-app-language switching (#1467) 2019-09-03 18:35:22 +02:00
Konrad Pozniak 68376b4440 upgrade dagger (#1424) 2019-07-28 20:00:19 +02:00
Konrad Pozniak bbd06a0d2a set SwitchPreferenceCompat titles to multiline (#1421) 2019-07-27 21:51:37 +02:00
Konrad Pozniak b72fbc6d4c upgrade dependencies (#1389) 2019-07-16 19:36:04 +02:00
Conny Duck 1916da2bb6 Release 65 2019-07-11 20:03:55 +02:00
Conny Duck 3517b793ae Release 64 2019-06-29 16:30:57 +02:00
Conny Duck 9f90686c5f Release 63 2019-06-25 21:10:34 +02:00
Konrad Pozniak c746ed0833 Improve link preview cards (#1330)
* improve card frame

* add placeholder for empty image

* improve layout, Pleroma compatibility, show author name as description fallback

* reset okhttp logging level

* remove unneeded statement
2019-06-22 08:05:55 +02:00
Konrad Pozniak 9094a6d438 update Room to 2.1.0 (#1323) 2019-06-17 13:43:11 +02:00
Konrad Pozniak 5fa4ed82d0 Update Dagger & other deps (#1315)
* update dagger

* update remaining deps
2019-06-09 19:48:04 +02:00
pandasoft0 34d130f12f Redesign report activity (#1295)
* Report activity core

* Implement navigation

* Implement navigation

* Update strings

* Revert manifest formatting

* Implement Done page

* Add landscape layout

* Implement Note fragment

* Create component

* Implement simple status adapter

* Format code

* Add date/time to report statuses

* Refactor status view holder

* Refactor code

* Refactor ViewPager

* Replace MaterialButton with Button

* Remove unneeded string

* Update Text and Check views style

* Remove old ReportActivity and rename Report2Activity to ReportActivity

* Hide "report to remote instance" checkbox for local accounts

* Add account, hashtag and links click handler

* Add media preview

* Add sensitive content support

* Add status expand/collapse support

* Update adapter to user adapterPosition instead of stored status

* Updated checked change handling

* Add polls support to report screen

* Add copyright

* Set buttonTint at CheckBox

* Exclude reblogs from statuses for reports

* Change final page check mark size

* Update report note screen

* Fix typos

* Remove unused params from api endpoint

* Replace .visibility with show()/hide()

* Replace Date().time with System.currentTime...

* Add line spacing

* Fix close button tint issue

* Updated status adapter
2019-06-09 16:55:34 +02:00
Constantin A 5c5ae15a63 2019 Emoji Update (#1261)
* Updated EmojiCompat support:
- Fonts are now updatable
  - Old fonts will automatically be deleted
- Noto Emoji is supported
- New library version

* It will now (hopefully) only look through the emoji font directory if it exists...

* Added a noto emoji icon for Android <=6;
Font files and their version relation are only loaded once now.

* Small bugfix for the noto emoji icon

* Changed the initial size of the existingFontFiles list to a constant value

* Bugfixes
Old files are now (really) deleted
The latest version is used as the actuall font
Further optimizations

* Emoji font update triggers restart dialog

* Resized the Noto icon;
(Hopefully) fixed EmojiCompat (again)
2019-06-06 21:51:56 +02:00
Bernd 6cbfb7699b Update Deps (#1275) 2019-05-24 18:42:13 +02:00
Conny Duck d6b04adc45 Release 62 2019-05-20 18:53:04 +02:00
Konrad Pozniak 30ea164f45 downgrade alpha libraries (#1273) 2019-05-20 16:56:58 +02:00
Konrad Pozniak 2ee95b4ca3 upgrade deps (#1263) 2019-05-18 08:06:30 +02:00
pandasoft0 1f87fd66a5 Update preferences library, remove unneeded "shouldDisableView" (#1254) 2019-05-09 21:00:50 +02:00
Conny Duck fd3e868e9a Release 61 2019-05-09 19:09:40 +02:00
Conny Duck e68274c1ec Release 60 2019-05-06 10:45:56 +02:00
Konrad Pozniak 6297f39040 fix deleted status reappearing in the timeline (#1225)
* fix deleted status reappearing in the timeline

* fix crash

* fix tests

* fix instrumented tests

* add test for deleted status in timeline
2019-05-01 22:10:00 +02:00
Conny Duck b4b5903245 upgrade deps 2019-04-28 09:52:12 +02:00
Konrad Pozniak 487e48389e fix the Glide annotationProcessor warning 2019-04-21 08:24:29 +02:00
pandasoft0 f7b577dfd1 Migrate to Glide (#1175)
* Replace Picasso library with Glide library tuskyapp#1082

* Replace Picasso library with Glide library tuskyapp#1082

* Update load emoji with glide

* Update context used for Glide

* Removed unused import

* Replace deprecated SimpleTarget with CustomTarget

* Fix crash at the view image fragment, remove override image size

* Replace Single.create with Single.fromCallable

* View image fragment refactor

* Fix after merge

* Try to load cached image first and show progress view on failure

* Try to load cached image first and show progress view on failure
2019-04-16 21:39:12 +02:00
Conny Duck f12ad19f96 Release 59 2019-04-08 13:31:57 +02:00