Commit Graph

1358 Commits

Author SHA1 Message Date
Konrad Pozniak e952b6c627 Drafts v2 (#2032)
* cleanup warnings, reorganize some code

* move ComposeAutoCompleteAdapter to compose package

* composeOptions doesn't need to be a class member

* add DraftsActivity and DraftsViewModel

* drafts

* remove unnecessary Unit in ComposeViewModel

* add schema/25.json

* fix db migration

* drafts

* cleanup code

* fix compose activity rotation bug

* fix media descriptions getting lost when restoring a draft

* improve deleting drafts

* fix ComposeActivityTest

* improve draft layout for almost empty drafts

* reformat code

* show toast when opening reply to deleted toot

* improve item_draft layout
2021-01-30 05:17:56 +03:00
Levi Bard 72865a0138 Support opening unknown attachment types via `openLink` (#2044)
* Support opening unknown attachment types via openLink. #1970

* Fix label text for unknown attachment types
2021-01-30 04:23:21 +03:00
Levi Bard e162583309 Prompt before deleting lists (#2043)
* Prompt before deleting lists. #1998

* Address pull request feedback
2021-01-30 04:22:27 +03:00
Levi Bard 6b93d02952 Make tapping the main toolbar scroll to the top of the timeline. #1899 (#2045) 2021-01-30 04:22:17 +03:00
Garrit Franke 6cb7db37a5 Show display names for reposts (#2041)
* WIP: Show display names for reposts

* Display emojis on reposts

* Move unicode wrapping

Co-authored-by: Garrit Franke <garrit@slashdev.space>
2021-01-30 04:22:06 +03:00
Levi Bard fc47d1d94a Implement timed mutes. (#2035)
Fixes #2033
2021-01-30 04:18:24 +03:00
lenchan139 d7ec778fd9 multiple media upload support (#2029)
* multiple media upload support

* multiple media upload support

* multiple media upload support

* remove  typing

* Update app/src/main/res/values/strings.xml

Co-authored-by: Konrad Pozniak <connyduck@users.noreply.github.com>

* remove magic number on string.xml and add to activity.

Co-authored-by: Konrad Pozniak <connyduck@users.noreply.github.com>
2021-01-30 04:17:01 +03:00
Konrad Pozniak 08c8aee553 cleanup code in ConversationsFragment, SearchFragment and Report*Fragments (#2027) 2021-01-30 04:16:27 +03:00
Garrit Franke 719dcb13fc Wellbeing mode (#1992)
* Add wellbeing mode settings toggle

* Translate wellbeing mode string to german

* Disable fav/boost count on toots if wellbeing is enabled

* Hide follow/post stats on profiles

* Reload notifications when wellbeing mode is toggled

* Add wellbeing mode explainer dialog

* Move wellbeing filter timeline into own category

* Add toggles for quantitative stats

* Hide announcement badge counts if wellbeing is enabled

* Move fetching of wellbeing setting to activity

* Add wellbeing option to statusDisplayOptions

* Update post filters for all accounts

* Remove local translations

* Revert "Remove local translations"

This reverts commit e92e636a5c759b09649174ab68ec91bc13680287.

* Remove german translations
2021-01-30 04:14:27 +03:00
Konrad Pozniak 3fe199305a cleanup accountManager.activeAccount usages in MainActivity (#2021) 2021-01-30 04:02:05 +03:00
Konrad Pozniak f466e1def5 remove ThemeUtils.getTintedDrawable (#2015) 2021-01-30 04:00:17 +03:00
Alibek Omarov 9586ada327 EditProfileActivity: allow adding fiels as much as instance allows (fix #89) 2020-12-06 03:31:13 +03:00
Alibek Omarov 389bcdb66d Fix #109 2020-12-06 03:00:08 +03:00
Alibek Omarov 6a1c062a8d Add option to render subscriptions as normal posts(like Pleroma does) or switch back to Mastodon behavior 2020-12-06 02:53:41 +03:00
Alibek Omarov 9c11fea95d Fix tests 2020-12-06 02:33:38 +03:00
Konrad Pozniak 05ab2c5c38 fix the notification buttons on the Muted users page (#2009) 2020-12-06 01:16:25 +03:00
Levi Bard 6e1c99513a Fix negative count on the unread announcements badge. (#2010)
Fixes #1994
2020-12-06 01:16:08 +03:00
Levi Bard bef916010d Fix links in announcements. (#2011)
Fixes #2008
2020-12-06 01:15:41 +03:00
Alibek Omarov 68d6a4ab25 Support Mastodon notification bell and status notification type 2020-12-06 01:12:25 +03:00
Alibek Omarov 17f5ad1146 NotificationsAdapter: apply same fix as 30b2349e2b 2020-12-02 20:07:05 +03:00
Karol Kosek 987db39d2c Add 'reply to' text to notifications 2020-12-02 18:03:43 +01:00
Karol Kosek 7ba55d97d5 Update pleroma status cache on reaction 2020-12-02 18:03:12 +01:00
Alibek Omarov cba7b2b122 Automatically prepend instance domain name, when domain name is omitted for images. Fixes very edge case when proxy base url is NULL 2020-12-02 20:02:19 +03:00
Alibek Omarov 9d41527168 ChatMessagesAdapter: post-merge fix 2020-12-01 22:48:54 +03:00
Konrad Pozniak 781586a009 fix workmanager crashing because of async initialization (#2003) 2020-12-01 21:41:14 +03:00
Konrad Pozniak e0582319a7 fix crash when opening some audio attachments (#2002) 2020-12-01 21:40:01 +03:00
Alibek Omarov 28a02cf72a Notifications: add support for move notification type 2020-12-01 03:46:35 +03:00
Alibek Omarov 0bdad9ad7a Notifications: add new virtual type for subscriptions 2020-12-01 03:01:10 +03:00
Alibek Omarov 8982f7af28 Another post-merge build fix 2020-12-01 02:25:24 +03:00
Mélanie Chauvel 928fdd8d02 Implement optional notifications muting for account muting (#1856) 2020-12-01 01:26:11 +03:00
Alibek Omarov 2c0b8ac6f5 Fix some issues after merge 2020-12-01 01:16:54 +03:00
Konrad Pozniak 0e4236611a better distinction between green and blue build flavors (#1997) 2020-11-29 19:26:31 +03:00
Konrad Pozniak efdc91d090 load drawer avatar earlier to avoid flicker on app start (#1993)
* load drawer avatar earlier to avoid flicker on app start

* use placeholder when loading drawer avatar for the first time
2020-11-29 19:25:31 +03:00
Ivan Kupalov e617b361c3 Fix some of the StrictMode violations (#1931)
Mostly it's disk reads/writes.

Conscrypt reads own version on startup which reads from disk multiple
times. There's no solution for it right now.

SharedPreferences which are used in BaseActivity also read from disk
and pretty early but it shouldn't be a problem.
2020-11-29 19:25:27 +03:00
Konrad Pozniak 9a182f6a68 fix crash when clearing glide requests (#1989) 2020-11-29 19:23:40 +03:00
Konrad Pozniak 58d839ef0d upgrade dependencies (#1990)
* upgrade dependencies

* fix tests
2020-11-29 19:22:51 +03:00
Konrad Pozniak e6f31ccd0d apply the home filter to lists (#1991) 2020-11-29 19:20:56 +03:00
kyori19 aa14e6e4f2 [needs help] Support announcements (#1977)
* Implement announcements activity

* Update reactions without api access

* Add badge style

* Use emptyList() as default parameter

* Simplify newIntent

* Use List instead of Array

* Remove unneeded ConstraintLayout

* Add lineSpacingMultiplier

* Fix wording

* Apply material design's default chip style

* Dismiss announcements automatically
2020-11-29 19:20:42 +03:00
Konrad Pozniak 9ea9926469 Personal account notes (#1978)
* add personal notes to AccountActivity

* use RxJava instead of plain okhttp calls

* make AccountViewModel rx aware

* hide note input until data is loaded
2020-11-29 19:08:58 +03:00
Conor Flynn 0d644e8fe3 Adds link to account page when clicking on displayName (#1982)
* Adds link to account page when clicking on displayName.

* Reuses the onClickListener

* Fixes formatting.
2020-11-29 18:48:42 +03:00
Levi Bard c2c4a3a535 Perform bidirectionality isolation manually instead of relying on `BidiFormatter` (#1976)
* Perform manual isolation of display names etc. instead of relying on BidiFormatter.
Fixes #1921

* Make follow request notification header formatting more like other notifications
2020-11-29 18:48:26 +03:00
Levi Bard 684289d3e3 Add tests for compose activity initial state changes (#1972) 2020-11-29 18:47:41 +03:00
Garrit Franke 313209e249 Delete scheduled post after editing (#1947)
* Delete scheduled post after editing

This ensures that editing a scheduled toot will not duplicate it.

Fixes #1924

* Fix scheduled toot editing

* Convert isEditingScheduledToot to property

* Replace MediatorLiveData with combineLiveData

* Remove dead code

* Fix observer emission

* Fix "Finish media upload" appearing for split second
2020-11-29 18:47:04 +03:00
Konrad Pozniak 8b3c9a8f09 use MaterialContainerTransform for ActionButton animation (#1961)
* use MaterialContainerTransform for ActionButton animation

* fix back button in TabPreferenceActivity
2020-11-29 18:31:57 +03:00
Levi Bard 94dba04216 Use blurhash for preview cards (#1960) 2020-11-29 18:30:31 +03:00
Levi Bard 029513205b Fix filtering of boosts (#1954) 2020-11-29 18:30:24 +03:00
Vignesh Kumar 8d9a54e8ea Change characters left color to red when negative (#1952)
* Change characters left color to red when negative

* Use val for the integers, optimize variable assignment

* Added tusky_red color

* remove extra line typo

* make characters left bold

* change red hue

* fix typo
2020-11-29 18:30:12 +03:00
Alibek Omarov 2eba3f41ba Animated emoji support 2020-10-19 02:50:24 +03:00
Alibek Omarov 5e9e626012 Attempt to fix custom emoji freeze bug 2020-10-19 02:49:03 +03:00
Alibek Omarov ed7bfa182b Implement proper hiding muted users and conversations 2020-10-18 23:57:55 +03:00