Commit Graph

120 Commits

Author SHA1 Message Date
Alibek Omarov ad894756bc Patch to compile, downgrade Kotlin version, otherwise it fails with useless message, disable incremental kapt otherwise it fails 2020-05-03 04:28:26 +03:00
Alibek Omarov f2b5b0d646 Cherry-picked 2cf1e366. 2020-05-03 04:05:38 +03:00
Sylvia van Os 21e825361e Fix content warning state being lost after screen rotation (#1756)
* Restore compose options after rotation

* Fix in ViewModel instead

* Move showContentWarning change into ViewModel
2020-05-03 03:12:32 +03:00
Konrad Pozniak c0f46c30a1 fix toot sending twice when using a hardware keyboard (#1758) 2020-05-03 03:12:05 +03:00
Levi Bard b44ceea44c Confirm blocks and mutes from timelines (#1740)
* Add preference for confirming blocks and mutes from timelines
Implements #1737

* Apply code review feedback
2020-05-03 03:06:45 +03:00
Konrad Pozniak 2b500bdad3 simplify ComposeOptionsView (#1734) 2020-05-03 03:04:00 +03:00
Levi Bard 4f72b57990 Ensure media are marked sensitive any time there's a content warning (#1728)
Addresses the most critical part of #1725, and may also apply to #1721
2020-05-03 03:01:17 +03:00
Alibek Omarov 5ad9f0e871 ComposeActivity: fix crash on old Android 2020-04-12 22:02:32 +03:00
Alibek Omarov c1557e08fe wysiwyg: add minimal editor based on MarkdownEdit library 2020-04-12 20:44:40 +03:00
Alibek Omarov 3bcbc97bab compose: implement BBcode and HTML sending 2020-04-12 20:13:09 +03:00
Ivan Kupalov a267d85080 Fix reblog confirm (#1723)
* Fix reblog confirmation default value

* Fix triggering reblog before confirming it

* Fix accidents caused by reblog confirmation
2020-04-10 16:41:06 +03:00
Alibek Omarov 738d378154 Merge branch 'develop' of https://github.com/tuskyapp/Tusky into develop 2020-03-12 02:53:28 +03:00
Ivan Kupalov 6a87e3e352
Work around the bug in ComposeScheduleView, fix #1720 (#1722)
DatePicker seems to think that it's in UTC. So setting selected time
might not work as aspect and receiving value from it might be in UTC
as well. This commit fixes the second issue by interpreting the date
as UTC date. Tested with America/New_York (GMT-5 at the moment) and
Russia/Kamchatka (GMT+12).
2020-03-09 20:43:01 +01:00
Alibek Omarov 3cbbbe99c4 Merge upstream 2020-03-06 16:16:54 +03:00
Ivan Kupalov 67c20326f9
Add options to confirm reblog/unreblog actions, close #460 (#1650) 2020-03-03 21:27:26 +01:00
Levi Bard 3edc47aa4a
Add option to show link previews in timelines (#1681)
* Add option to show link previews in timelines.
Addresses #1075

* Indent cards in non-selected statuses when viewing threads

* Indent cards in timelines

* Fix clipping of right side of preview in timelines
2020-03-02 19:34:31 +01:00
Alibek Omarov b0e97392a5 Merge upstream 2020-02-28 10:30:09 +03:00
Levi Bard dd8abad8ca
When a plaintext share contains EXTRA_TEXT and a distinct EXTRA_SUBJECT, use EXTRA_SUBJECT as the content warning for the shared status (#1712) 2020-02-26 20:41:02 +01:00
Konrad Pozniak d9c802982e
Upgrade deps (#1708)
* upgrade Dagger

* upgrade AndroidX Lifecycle

* upgrade AndroidX Fragment

* upgrade Room, Retrofit, AndroidX core, Material components

* fix report fragments not sharing viewmodels
2020-02-25 19:49:41 +01:00
Levi Bard 80e0c55b67
Warn when scheduling a post within 5 minutes (#1698)
* Warn when scheduling a post within 5 minutes

* Fix NPE when scheduled post time isn't set

* Use AlertDialog with option to cancel instead of Toast when a post isn't scheduled far enough in advance

* Move schedule validation warning to scheduling bottom sheet

* Fix scheduling error display when sending after an initially-valid scheduling time has become invalid
2020-02-25 18:33:24 +01:00
Konrad Pozniak aba36ca6f8
Compose activity fixes (#1707)
* cleanup media keyboard code

* fix crash in ComposeActivity when rotating phone while taking photo

* fix poll button in ComposeActivity being invisible when disabled
2020-02-24 22:02:59 +01:00
Konrad Pozniak 6d48811767
fix crash when inserting custom emojis at the start of the compose field (#1706) 2020-02-21 22:08:41 +01:00
Levi Bard 9a173f0234
Delete draft when sending its status completes. (#1704)
Fixes #1700
2020-02-19 21:10:22 +01:00
Alibek Omarov 63a751768a Merge upstream 2020-02-19 04:54:30 +03:00
Konrad Pozniak 6a60a2a6a6
fix url search returning the same post indefinitely (#1695) 2020-02-17 19:34:11 +01:00
Konrad Pozniak 3a75ca25a3
[Tusky10] fix crash when bookmarking a conversation while offline (#1686) 2020-02-14 19:03:42 +01:00
Ivan Kupalov 5945700c1b
Allow higher zooming levels for caption dialog images (#1672) 2020-02-10 14:00:21 +01:00
Konrad Pozniak 11a4de858c fix crash when opening Poll dialog and instanceParams are null (#1668) 2020-02-09 22:34:44 +01:00
Konrad Pozniak 88b8eca16a
fix crash when Account.displayName is null (#1667) 2020-02-07 20:23:51 +01:00
Konrad Pozniak fde23f25d2
fix mixup of search params in SearchDataSource.loadRange (#1666) 2020-02-07 20:23:36 +01:00
Alibek Omarov 058e7d46f9 Merge upstream, update color scheme 2020-02-03 12:50:52 +03:00
Konrad Pozniak 8767d2ed3d
Theme refactoring (#1656)
* Theme refactoring

* disable the automatic tinting of surfaces with elevation in dark mode

* make the media warning visible again with the dark theme

* fix nav bar on api 27+

* use correct color for all media warnings
2020-01-30 21:37:28 +01:00
Konrad Pozniak 29ef92edd3
fix overlapping icons in ComposeActivity (#1661) 2020-01-30 21:17:37 +01:00
Alibek Omarov af37f83ccd Merge remote-tracking branch 'origin2/develop' into develop 2020-01-29 22:42:40 +03:00
Mélanie Chauvel (ariasuni) d6f3856878
Refresh DM column when removing toot there instead of removing conversation (#1654) 2020-01-29 19:25:55 +01:00
Konrad Pozniak 7d5a9da992
fix crash when closing ComposeActivity (#1651) 2020-01-29 19:15:53 +01:00
Alibek Omarov ff361c1743 Merge with upstream 2020-01-20 13:56:18 +03:00
Ivan Kupalov e1aa3cc995 Enable zooming and panning in the CaptionDialog (#1643) 2020-01-18 12:12:37 +01:00
Levi Bard 9dccd06a06 Add support for uploading audio attachments (#1630)
* Add support for audio attachments.
Partially addresses #1337

* Register Tusky as a target for audio sharing

* Use icon with textColorTertiary for audio preview
2020-01-16 19:05:52 +01:00
Alibek Omarov 6e60f89f48 MastodonApi: set withMuted to true everywhere for a while 2020-01-16 18:15:11 +03:00
Alibek Omarov 0a40b9cc6f ComposeActivity: add warning for too big files 2020-01-16 16:51:55 +03:00
Alibek Omarov 2e45c1ecb4 ComposeActivity: use nodeinfo data for determining upload limits and markdown support 2020-01-16 16:44:32 +03:00
Alibek Omarov 3e7bfb4f39 Merge with upstream 2020-01-14 17:07:21 +03:00
Konrad Pozniak f12f126df5
migrate ReportPagerAdapter to ViewPager2 (#1635) 2020-01-13 21:15:22 +01:00
Ivan Kupalov 32fd7b18ce Add space before emojo code in editor when needed, fix #1616 (#1632) 2020-01-13 15:21:40 +01:00
Levi Bard c9a28b47c1 Compose activity: When selection is nonempty and a "special character" button is pressed, decorate all selected word starts (#1523)
* ComposeActivity: When selection is nonempty and a "special character" button is pressed, decorate all selected word starts
Closes #1417

* ComposeActivity: Tests for word break prepend logic
2020-01-13 15:21:17 +01:00
Levi Bard 6a2c9bdbe4 Don't drop content warning when replying (#1631) 2020-01-13 15:18:55 +01:00
Konrad Pozniak 7cb76aad97
Fix search bugs (#1624)
* fix toggling media visibility

* cleanup search code to make it more readable

* remove redundant OnQueryTextListener

this is the default behavior

* fix bookmarking

* fix status interaction causing unnecessary network requests
2020-01-13 13:57:44 +01:00
Alibek Omarov 7e3a3cd469 ProgressTextView: fix circle drawing 2020-01-11 13:07:21 +03:00
Alibek Omarov 48bf3fe35a ProgressView: remove dead code 2020-01-11 12:41:44 +03:00