Alibek Omarov
978489165e
ViewImageFragment: replace TouchImageView by BigImageView based on SSIV and with proper GIF support
4 years ago
Ivan Kupalov
da110b8fc0
Improve image viewer ( #1843 )
...
This commit does 3 things:
1. Replaces PhotoView (which is abandonware) with modern TouchImageView
2. Fixes an issue with panning images. Gesture was not intercepted
properly and pager was taking control instead of image being moved.
3. Adds feedback to dismissing of images with vertical gesture.
4 years ago
Alibek Omarov
f9f2f9aa5b
ComposeActivity: finalize preview feature, fix preview bar appearing on media change, add proper icon, fix minor bugs
4 years ago
Alibek Omarov
c3c92fadcd
ComposeActivity: preview ability for Pleroma, WIP
4 years ago
Konrad Pozniak
d3910e618b
don't create a CW when sharing text to Tusky ( #1836 )
4 years ago
Alibek Omarov
64277ef45a
app: all external references are now called Husky to not conflict with Tusky files
4 years ago
Alibek Omarov
3439a1e16a
MediaUploader: fix stupid bug that made all pictures to be resized
4 years ago
Alibek Omarov
930e05be27
NodeInfo: replace Int by Long in upload limits, add test cases
4 years ago
kyori19
f69e837cb3
Fix large media uploading ( #1800 )
4 years ago
Alibek Omarov
962b6728dd
Sticker: sort by title
4 years ago
Alibek Omarov
41ee259196
ComposeViewModel: add Markdown/HTML support for glitch-soc(untested), fix file size limits for Pixelfed
4 years ago
Alibek Omarov
91341d0955
ComposeActivity: fix broken polls on Pleroma
4 years ago
Alibek Omarov
d705a85690
Stickers: add PleromaFE stickers support, enabled in settings
4 years ago
Alibek Omarov
c7e7da9433
Cherry-picked 2cf1e366.
4 years ago
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
4 years ago
Konrad Pozniak
3e8b8f1f88
fix toot sending twice when using a hardware keyboard ( #1758 )
4 years ago
Konrad Pozniak
ae651c3cf1
simplify ComposeOptionsView ( #1734 )
4 years ago
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
4 years ago
Alibek Omarov
8eb3b7ecca
ComposeActivity: fix crash on old Android
4 years ago
Alibek Omarov
fed8b01764
wysiwyg: add minimal editor based on MarkdownEdit library
4 years ago
Alibek Omarov
ca196ffc73
compose: implement BBcode and HTML sending
4 years ago
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).
4 years ago
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 )
4 years ago
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
4 years ago
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
4 years ago
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
4 years ago
Konrad Pozniak
316c7f202e
fix crash when inserting custom emojis at the start of the compose field ( #1706 )
4 years ago
Levi Bard
5d4865ae3c
Delete draft when sending its status completes. ( #1704 )
...
Fixes #1700
4 years ago
Ivan Kupalov
418f090687
Allow higher zooming levels for caption dialog images ( #1672 )
4 years ago
Konrad Pozniak
29b4d7aa77
fix crash when opening Poll dialog and instanceParams are null ( #1668 )
4 years ago
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
4 years ago
Konrad Pozniak
776e995e73
fix overlapping icons in ComposeActivity ( #1661 )
4 years ago
Konrad Pozniak
523349e108
fix crash when closing ComposeActivity ( #1651 )
4 years ago
Ivan Kupalov
584fc54410
Enable zooming and panning in the CaptionDialog ( #1643 )
4 years ago
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
4 years ago
Alibek Omarov
b46037b546
ComposeActivity: add warning for too big files
4 years ago
Alibek Omarov
919c24571d
ComposeActivity: use nodeinfo data for determining upload limits and markdown support
4 years ago
Ivan Kupalov
e60a9b19e9
Add space before emojo code in editor when needed, fix #1616 ( #1632 )
4 years ago
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
4 years ago
Levi Bard
a811ae0c83
Don't drop content warning when replying ( #1631 )
4 years ago
Alibek Omarov
ff89f698c8
ProgressTextView: fix circle drawing
4 years ago
Alibek Omarov
b7db21d8d4
ProgressView: remove dead code
4 years ago
Alibek Omarov
d447b683cc
ComposeActivity: restore ability to upload any type of file
4 years ago
Alibek Omarov
703d423f82
ComposeActivity: fix crash
4 years ago
Alibek Omarov
5e9bd26f24
ComposeActivity: add unlimited attachments support again
4 years ago
Alibek Omarov
2e2ab4ed6a
ComposeActivity: add optional field markdownMode to ComposeOptions
4 years ago
Alibek Omarov
343b121d7b
ComposeActivity: fix compiling
4 years ago
Alibek Omarov
291eb4100d
ComposeViewModel: fix syntax errors
4 years ago
Alibek Omarov
edd7991101
ComposeActivity: reimplement markdown mode again after pointless java->kotlin transition
4 years ago
Konrad Pozniak
283e9d0ad9
address PR feedback
4 years ago