Commit Graph

1218 Commits

Author SHA1 Message Date
Alibek Omarov 7bd34b29e1 EmojiKeyboard: add recents 2020-05-03 02:49:31 +03:00
Alibek Omarov 335f45d321 LinkHelper: try to fix error if account url is null 2020-05-03 02:49:31 +03:00
Alibek Omarov c674d5c4e6 NetworkModule: hide different logging levels under comments to not look every time in documentation 2020-05-03 02:49:31 +03:00
a1batross 496ad50b18 filters: represent POST as json becausr booleans cannot be represented in urlencoded as Pleroma thinks 2020-04-28 04:01:19 +02:00
Alibek Omarov 5ad9f0e871 ComposeActivity: fix crash on old Android 2020-04-12 22:02:32 +03:00
Alibek Omarov f80d5639a9 NetworkModule: oops, disable showing headers in logcat 2020-04-12 21:05:54 +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
Alibek Omarov 7c806733ee AccountActivity: animate banner if animateGifAvatars is enabled 2020-04-10 19:20:28 +03:00
Alibek Omarov 01e4f13c93 http: haha content-encoding goes brrrr (enabled brotli compression) 2020-04-10 18:53:28 +03:00
Alibek Omarov 25dc0e9677 emojis: remove unicode emojis consisting of more than one code point as it's unsupported by Pleroma 2020-04-10 17:33:53 +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 825eab8cda emoji_reactions: show keyboard as dialog 2020-04-10 02:18:37 +03:00
Alibek Omarov 1a8fd62e46 custom_emoji: fix showing emojis that may look like a regular expression 2020-04-10 02:14:33 +03:00
Alibek Omarov f4b696cc4d emoji_reactions: implement for notifications fragment 2020-04-10 02:13:33 +03:00
Alibek Omarov 8580524300 emoji_keyboard: first keyboard, supports only unicode emojis 2020-04-10 02:11:38 +03:00
Alibek Omarov b08f939e0f emoji: add all Unicode 12.0 emojis 2020-04-10 01:59:25 +03:00
Alibek Omarov e98db92d23 emoji: use bundled compat font 2020-04-10 01:58:47 +03:00
Alibek Omarov 18c19be90c adapter: replace simple viewholders by SingleViewHolder(extended from RecyclerView.ViewHolder but allowed to instantiate) 2020-04-10 01:58:06 +03:00
Alibek Omarov d273c9dec4 Merge branch 'develop' of https://github.com/FWGS/Husky into develop 2020-03-16 18:47:27 +03:00
Alibek Omarov 4d4d7d21ea Better handling of muted users and conversations, add option Hide muted users like in PleromaFE 2020-03-13 18:54:27 +03:00
Alibek Omarov d37e3ec569 Revert "Hide muted users' statuses in timelines on client side, because we're getting full timeline now(to support muted conversations)"
This reverts commit 2fc5f876bc.
2020-03-13 17:46:22 +03:00
Alibek Omarov 98cad637c9 NotificationHelper: add a way to test legacy notification channels on new devices 2020-03-13 16:59:58 +03:00
Alibek Omarov 8908e93580 StatusBaseViewHolder: fix recycling bug, fix emoji reaction view empty space touch 2020-03-12 06:16:57 +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 c2ded20df8 emoji_reactions: implement adding and removing on existing reactions(LOW PERFORMANCE) 2020-03-06 22:33:25 +03:00
Alibek Omarov 6a4215363e emoji_reactions: show the emoji in title 2020-03-06 21:30:20 +03:00
Alibek Omarov 371cafc0cd emoji_reactions: add menu for normal timelines 2020-03-06 21:22:41 +03:00
Alibek Omarov 4f1400842f emoji_reactions: general refactoring, implement emoji_reactions_by 2020-03-06 21:04:14 +03: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
Ivan Kupalov 712f61b15a
Add "more" popup to a11y menu, fix #1710 (#1714) 2020-03-02 19:36:44 +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
Alibek Omarov 50730f7481
Add more URL cases for Pleroma, Misskey and Friendica (#1702) 2020-02-25 19:59:40 +01:00
Levi Bard 710b9f08c1
Add status url as EXTRA_SUBJECT when sharing status content. (#1680)
Addresses #1655
2020-02-25 19:58:20 +01:00
Ivan Kupalov 656644b7cb
Make image in BackgroundMessageView adapt to the height, fix #1618 (#1649)
* Make image in BackgroundMessageView adapt to the height, fix #1618

* Hide filters panel when showing status view in notifications
2020-02-25 19:57:28 +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
Konrad Pozniak 398ee66084
simplify DI & test setup, convert TuskyApplication to Kotlin (#1675)
* simplify DI & test setup, convert TuskyApplication to Kotlin

* try to fix tests on bitrise

* remove conscrypt-openjdk-uber test dependency again
2020-02-25 19:49:15 +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
Konrad Pozniak 1eef035a9e fix default emoji font icon not rendering 2020-02-21 18:21:47 +01:00
Alibek Omarov 2fc5f876bc Hide muted users' statuses in timelines on client side, because we're getting full timeline now(to support muted conversations) 2020-02-20 05:03:28 +03:00
Alibek Omarov 74d2bd6aaa status: increase hit area for fav/reblog buttons #71 2020-02-20 04:25:35 +03:00
Konrad Pozniak b8ef287b47
fix image from another status showing up instead of blurhash (#1699) 2020-02-19 22:07:01 +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 052b58f5af Add MORE cases for Pleroma, Misskey and Friendica 2020-02-19 05:14:40 +03:00
Alibek Omarov 63a751768a Merge upstream 2020-02-19 04:54:30 +03:00
Alibek Omarov 05b0779902 emojireactions: implement coloring buttons 2020-02-19 04:18:48 +03:00
Alibek Omarov 483aae6c74 emojireactions: fix EmojiReaction object 2020-02-19 04:18:21 +03:00
Konrad Pozniak 3f3166522b
fix list editing by moving account_ids from query to form param (#1690)
* fix list editing by moving account_ids from query to form param

* fix DialogFramentStyle
2020-02-18 08:45:10 +01:00
Konrad Pozniak 6a60a2a6a6
fix url search returning the same post indefinitely (#1695) 2020-02-17 19:34:11 +01:00
Ivan Kupalov 5a5bbca171
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 d3ebcc14ec.

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
Levi Bard 04275b4073
[Tusky10] Fix recollapsing expanded sensitive content in the thread view (#1689) 2020-02-14 19:04:14 +01:00
Levi Bard 185bfeb9f3
[Tusky10] Fix descriptions of audio attachments when expanding/collapsing status content (#1688) 2020-02-14 19:03:59 +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 b09aa35b8e Very dirty, very quick, read-only implementation of emoji reactions 2020-02-07 01:21:10 +03:00
Alibek Omarov 7c286c61cd emojireactions: add emoji reaction list to StatusViewData 2020-02-06 23:24:18 +03:00
Alibek Omarov 1b4f1eea0e emojireactions: add entities and api endpoints 2020-02-06 23:19:28 +03:00
Alibek Omarov 626359adaa Merge branch 'develop' of https://github.com/tuskyapp/Tusky into develop 2020-02-06 18:55:36 +03:00
Konrad Pozniak c379014d9a
fix content collapse button not working in notifications (#1665) 2020-02-04 22:21:43 +01:00
Alibek Omarov d8782fdb1a Fix NPE 2020-02-03 22:34:28 +06:00
Alibek Omarov db4670a703 Support emoji reaction notification 2020-02-03 18:36:45 +03:00
Alibek Omarov 8e4e104a18 Enable muting for all timelines, except where it's useless 2020-02-03 14:30:25 +03:00
Alibek Omarov d58a80f498 Correctly handle invalid conversation ID 2020-02-03 13:33:52 +03: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 45828fbb5a
fix FragmentAdapter returning null fragments when activity was recreated (#1647)
* fix FragmentAdapter returning null fragments when activity was recreated

* remove unused import

* make activity in CustomFragmentStateAdapter private
2020-01-29 19:17:11 +01:00
Konrad Pozniak 27d464351b
fix reveal button not updating in ViewThreadActivity (#1652) 2020-01-29 19:16:12 +01:00
Konrad Pozniak 7d5a9da992
fix crash when closing ComposeActivity (#1651) 2020-01-29 19:15:53 +01:00
Alibek Omarov 0ab3e66d0f Implement muting whole conversation by it's ID, add button to hide muted status again 2020-01-26 19:31:51 +03:00
Alibek Omarov 8cb743efaa Implement muting/unmuting conversations, fix possible appearing of muted users in notifications 2020-01-26 16:13:22 +03:00
Alibek Omarov ff361c1743 Merge with upstream 2020-01-20 13:56:18 +03:00
Alibek Omarov f2f7f32ca5 MainActivity: increase velocity threshold for viewPager 2020-01-20 13:48:32 +03:00
Ivan Kupalov e1aa3cc995 Enable zooming and panning in the CaptionDialog (#1643) 2020-01-18 12:12:37 +01:00
Alibek Omarov 3468cc654e NotificationsAdapter: show muted threads as muted 2020-01-17 19:44:09 +03:00
Alibek Omarov a6e9e85c22 Status: add isMuted parameter 2020-01-17 19:05:45 +03:00
Ivan Kupalov 92e9c9a762 Fix setting text to CW button in fav/reblog notification. Fix #1641 (#1642)
This is a regression from e5b78f65cf
2020-01-16 19:08:19 +01:00
Levi Bard f903cc50e1 Add support for sharing audio attachments (#1629) 2020-01-16 19:06:13 +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
Vivianne a7c1345085 Small changes to the media player (#1572)
* Resolving some issues with media playback.

* Changing ViewVideoFragment so that it fully handles autohiding the
  media controller, allowing consistency between it and the toolbar

* Fixed an issue where the toolbar and description were not fading in

* Do not hide the toolbar/media player if the video is loading or paused

* Created "ExposedPlayPausedVideoView" to allow hooking play/pause

* Fix back button when viewing videos

* Back button did not work if video controls were visible.

* Tweak audio player

* Always show the controls when audio begins playing

* Do not auto-hide the controls if the player is playing audio

* Address PR comments

* Use overloaded constructor
* Remove m prefix

* Fix subtle media player issues

* Fix audio player incorrectly auto-hiding after hiding/showing toolbar

* Only subscribe touch listener once content is ready
  - Prevents top toolbar visibility from getting out of phase with audio player visibility if hidden during load
2020-01-16 19:01:02 +01:00
Alibek Omarov 6e60f89f48 MastodonApi: set withMuted to true everywhere for a while 2020-01-16 18:15:11 +03:00
Alibek Omarov 7657202347 MastodonApi: add with_muted field on every timeline 2020-01-16 18:14:41 +03:00
Alibek Omarov cfabb3f748 NotificationHelper: don't send notification if it's from muted thread 2020-01-16 18:13:38 +03:00
Alibek Omarov 9645718062 Status: add thread_muted field 2020-01-16 18:13:10 +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 7f9bfb5790 NodeInfo: implement nodeinfo fetching 2020-01-16 16:43:54 +03:00
Alibek Omarov e2ad0f541f Merge remote-tracking branch 'origin2/develop' into develop 2020-01-16 11:58:27 +03:00
Konrad Pozniak 21a7201f8a
fix notification refresh (#1638) 2020-01-14 21:58:35 +01:00