Alibek Omarov
8641b0f220
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
c7e7da9433
Cherry-picked 2cf1e366.
2020-05-03 04:05:38 +03:00
Sylvia van Os
d1ab0deb98
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
3e8b8f1f88
fix toot sending twice when using a hardware keyboard ( #1758 )
2020-05-03 03:12:05 +03:00
Levi Bard
bf7e9e019d
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
ae651c3cf1
simplify ComposeOptionsView ( #1734 )
2020-05-03 03:04:00 +03:00
Levi Bard
683fb8f0f0
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
8eb3b7ecca
ComposeActivity: fix crash on old Android
2020-04-12 22:02:32 +03:00
Alibek Omarov
fed8b01764
wysiwyg: add minimal editor based on MarkdownEdit library
2020-04-12 20:44:40 +03:00
Alibek Omarov
ca196ffc73
compose: implement BBcode and HTML sending
2020-04-12 20:13:09 +03:00
Ivan Kupalov
5dd190404f
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
5e620c62ff
Merge branch 'develop' of https://github.com/tuskyapp/Tusky into develop
2020-03-12 02:53:28 +03:00
Ivan Kupalov
b18fbe8949
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
0257cd3b07
Merge upstream
2020-03-06 16:16:54 +03:00
Ivan Kupalov
0547e78c94
Add options to confirm reblog/unreblog actions, close #460 ( #1650 )
2020-03-03 21:27:26 +01:00
Levi Bard
61e0c2c7a8
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
3295348a79
Merge upstream
2020-02-28 10:30:09 +03:00
Levi Bard
903d2154bf
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
025d1d4b3c
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
cc4642f3a0
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
d8b5967c97
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
316c7f202e
fix crash when inserting custom emojis at the start of the compose field ( #1706 )
2020-02-21 22:08:41 +01:00
Levi Bard
5d4865ae3c
Delete draft when sending its status completes. ( #1704 )
...
Fixes #1700
2020-02-19 21:10:22 +01:00
Alibek Omarov
f2d14a0f9b
Merge upstream
2020-02-19 04:54:30 +03:00
Konrad Pozniak
19e214328d
fix url search returning the same post indefinitely ( #1695 )
2020-02-17 19:34:11 +01:00
Konrad Pozniak
a0264b829c
[Tusky10] fix crash when bookmarking a conversation while offline ( #1686 )
2020-02-14 19:03:42 +01:00
Ivan Kupalov
418f090687
Allow higher zooming levels for caption dialog images ( #1672 )
2020-02-10 14:00:21 +01:00
Konrad Pozniak
29b4d7aa77
fix crash when opening Poll dialog and instanceParams are null ( #1668 )
2020-02-09 22:34:44 +01:00
Konrad Pozniak
d368ed464e
fix crash when Account.displayName is null ( #1667 )
2020-02-07 20:23:51 +01:00
Konrad Pozniak
7dcd6221aa
fix mixup of search params in SearchDataSource.loadRange ( #1666 )
2020-02-07 20:23:36 +01:00
Alibek Omarov
96e0c39f90
Merge upstream, update color scheme
2020-02-03 12:50:52 +03:00
Konrad Pozniak
eeb768eb1c
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
776e995e73
fix overlapping icons in ComposeActivity ( #1661 )
2020-01-30 21:17:37 +01:00
Alibek Omarov
02ffb08b7c
Merge remote-tracking branch 'origin2/develop' into develop
2020-01-29 22:42:40 +03:00
Mélanie Chauvel (ariasuni)
4907a051ab
Refresh DM column when removing toot there instead of removing conversation ( #1654 )
2020-01-29 19:25:55 +01:00
Konrad Pozniak
523349e108
fix crash when closing ComposeActivity ( #1651 )
2020-01-29 19:15:53 +01:00
Alibek Omarov
565f7f5788
Merge with upstream
2020-01-20 13:56:18 +03:00
Ivan Kupalov
584fc54410
Enable zooming and panning in the CaptionDialog ( #1643 )
2020-01-18 12:12:37 +01:00
Levi Bard
6c592b6723
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
9796da7513
MastodonApi: set withMuted to true everywhere for a while
2020-01-16 18:15:11 +03:00
Alibek Omarov
b46037b546
ComposeActivity: add warning for too big files
2020-01-16 16:51:55 +03:00
Alibek Omarov
919c24571d
ComposeActivity: use nodeinfo data for determining upload limits and markdown support
2020-01-16 16:44:32 +03:00
Alibek Omarov
71d8393098
Merge with upstream
2020-01-14 17:07:21 +03:00
Konrad Pozniak
39915442aa
migrate ReportPagerAdapter to ViewPager2 ( #1635 )
2020-01-13 21:15:22 +01:00
Ivan Kupalov
e60a9b19e9
Add space before emojo code in editor when needed, fix #1616 ( #1632 )
2020-01-13 15:21:40 +01:00
Levi Bard
91bf35f627
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
a811ae0c83
Don't drop content warning when replying ( #1631 )
2020-01-13 15:18:55 +01:00
Konrad Pozniak
74ee19716f
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
ff89f698c8
ProgressTextView: fix circle drawing
2020-01-11 13:07:21 +03:00
Alibek Omarov
b7db21d8d4
ProgressView: remove dead code
2020-01-11 12:41:44 +03:00