Commit graph

969 commits

Author SHA1 Message Date
Konrad Pozniak
db369aec75
fix timeline reloading and favs/boosts/polls showing up at wrong pos (#1374) 2019-07-10 06:52:13 +02:00
Levi Bard
d4ec0bb101 Apply conversation filters to threads. Addresses #1349 (#1351)
* Apply conversation filters to threads. Addresses #1349

* Cache filters for app lifetime, unless filters are modified locally

* Flush cached filters when changing accounts
2019-07-08 12:57:53 +02:00
Levi Bard
c3cae4a603 Fix respecting bot overlay preference in detailed status view. (#1368)
Closes #1364
2019-07-07 14:41:07 +02:00
Konrad Pozniak
fdee75c84a
fix crash caused by broken mention (#1360) 2019-07-02 10:55:02 +02:00
Konrad Pozniak
1d2e42b9f5
fix LoginActivity created twice on unauthenticated appstart (#1352)
* fix LoginActivity created twice on unauthenticated appstart

* make SplashActivity not inherit from BaseActivity
2019-06-29 11:39:50 +02:00
Konrad Pozniak
707f3e605c
fix build warnings (#1331) 2019-06-24 22:15:31 +02:00
Konrad Pozniak
56b53c458a
fix vanishing toots bug when refreshing (#1343) 2019-06-24 21:43:14 +02:00
Konrad Pozniak
ac2e16e08c
fix image transition from timeline to ViewMediaActivity (#1348) 2019-06-24 20:52:38 +02:00
Levi Bard
ffb6c9a7a7 Add @ and # helper buttons to compose activity (#1277)
Addresses #810
2019-06-24 10:33:05 +02:00
Levi Bard
46efdf7830 Add the 'whole word' setting to the filter preferences UI (#1278) 2019-06-24 10:11:25 +02:00
Konrad Pozniak
b95ff10a3c
Unlimited number of poll options (#1340)
* implement unlimited number of poll options

* fixes

* extract percent calculation into function so it can be used anywhere

* add license header
2019-06-22 21:55:03 +02:00
Ivan Kupalov
d827bd120f Show media descriptions in timeline when previews are disabled. (#1284) 2019-06-22 20:38:53 +02:00
Konrad Pozniak
b825f42c7a
Improve link preview cards (#1330)
* improve card frame

* add placeholder for empty image

* improve layout, Pleroma compatibility, show author name as description fallback

* reset okhttp logging level

* remove unneeded statement
2019-06-22 08:05:55 +02:00
Konrad Pozniak
e6d91c1cf3
remove boosted status when the original author was blocked or muted (#1335) 2019-06-22 08:05:24 +02:00
Konrad Pozniak
22bd0462b7
update Room to 2.1.0 (#1323) 2019-06-17 13:43:11 +02:00
Konrad Pozniak
ab4f981955
fix conversation avatars (#1324) 2019-06-17 13:14:44 +02:00
Marie Axelsson
5d04a7ccda
Merge pull request #1303 from mlc/rick_roll_domains
Rick roll instead of logging in on selected domains. This is not censorship, but rather a choice by this house who will facilitate our services to.
2019-06-17 12:37:15 +02:00
pandasoft0
0ddde62202 Disable sensitive media send if medias list is empty (#1309) 2019-06-11 16:44:02 +02:00
pandasoft0
ce501f24e6 Add setting to show/hide notification filter bar (#1314)
* Add setting to show/hide notification filter bar tuskyapp/Tusky#1306

* Remove not required requestLayout

* Fix notifications reload issue
2019-06-11 16:41:15 +02:00
Levi Bard
a6819ce28e Implement instance mutes (#1311)
* Implement instance mutes. #1143

* Move new classes to instancemute component

* Add progress bar while instance list loads

* Add undo snackbar for instance unmuting

* Update display text for instance mutes
2019-06-11 15:56:27 +02:00
kyori19
4d916eb106 Fix onBackPressed never called in ComposeActivity (#1317) 2019-06-10 19:40:07 +02:00
Konrad Pozniak
05d939b68a
Update Dagger & other deps (#1315)
* update dagger

* update remaining deps
2019-06-09 19:48:04 +02:00
pandasoft0
c335651b6b Redesign report activity (#1295)
* Report activity core

* Implement navigation

* Implement navigation

* Update strings

* Revert manifest formatting

* Implement Done page

* Add landscape layout

* Implement Note fragment

* Create component

* Implement simple status adapter

* Format code

* Add date/time to report statuses

* Refactor status view holder

* Refactor code

* Refactor ViewPager

* Replace MaterialButton with Button

* Remove unneeded string

* Update Text and Check views style

* Remove old ReportActivity and rename Report2Activity to ReportActivity

* Hide "report to remote instance" checkbox for local accounts

* Add account, hashtag and links click handler

* Add media preview

* Add sensitive content support

* Add status expand/collapse support

* Update adapter to user adapterPosition instead of stored status

* Updated checked change handling

* Add polls support to report screen

* Add copyright

* Set buttonTint at CheckBox

* Exclude reblogs from statuses for reports

* Change final page check mark size

* Update report note screen

* Fix typos

* Remove unused params from api endpoint

* Replace .visibility with show()/hide()

* Replace Date().time with System.currentTime...

* Add line spacing

* Fix close button tint issue

* Updated status adapter
2019-06-09 16:55:34 +02:00
Constantin A
f7581daa75 2019 Emoji Update (#1261)
* Updated EmojiCompat support:
- Fonts are now updatable
  - Old fonts will automatically be deleted
- Noto Emoji is supported
- New library version

* It will now (hopefully) only look through the emoji font directory if it exists...

* Added a noto emoji icon for Android <=6;
Font files and their version relation are only loaded once now.

* Small bugfix for the noto emoji icon

* Changed the initial size of the existingFontFiles list to a constant value

* Bugfixes
Old files are now (really) deleted
The latest version is used as the actuall font
Further optimizations

* Emoji font update triggers restart dialog

* Resized the Noto icon;
(Hopefully) fixed EmojiCompat (again)
2019-06-06 21:51:56 +02:00
Konrad Pozniak
794903f496
correctly emojify account name in AccountActivity (#1297) 2019-06-05 21:35:29 +02:00
Konrad Pozniak
a956061cbf
cleanup unused resources (#1300) 2019-06-02 22:02:03 +02:00
Konrad Pozniak
2b2212e951
cleanup entity classes and ViewThreadFragment (#1302)
* cleanup entity classes and ViewThreadFragment

* fix tests
2019-06-02 21:23:18 +02:00
Konrad Pozniak
d863bc50e4
apply filters to boosted statuses (#1299) 2019-06-02 21:21:56 +02:00
mike castleman
b15a5c7614
enhance bad-domain detection 2019-06-01 15:29:15 -04:00
mike castleman
ee35a9768f
rick roll instead of logging in on selected domains 2019-06-01 14:47:14 -04:00
Konrad Pozniak
91d01bce05
Merge pull request #1296 from unstabler/impl-simple-shortcuts
improve usability: add shortcuts for compose/send new toot [#505]
2019-05-31 15:01:12 +02:00
Gyuhwan Park
50b50a182e fix(MainActivity,ComposeActivity): use onKeyDown() instead 2019-05-31 17:35:58 +09:00
Konrad Pozniak
9a90594fae
Merge pull request #1288 from tuskyapp/poll-description
Minimal screen reader support for polls
2019-05-30 21:53:56 +02:00
Gyuhwan Park
d31aa7fc43 feature(ComposeActivity): add shortcut for send new toot (CTRL + ENTER) [#505] 2019-05-30 21:22:52 +09:00
Gyuhwan Park
8cbf8b59bd feature(MainActivity): add shortcut for compose new toot (SHIFT + N or CTRL + N) [#505] 2019-05-30 21:20:53 +09:00
lenchan139
6fc62d3c01 make a copy of file before upload (#1294) 2019-05-29 20:26:33 +02:00
charlag
3f613dc56f Minimal screen reader support for polls 2019-05-26 15:56:26 +02:00
Konrad Pozniak
9690cd5730
add avatar placeholders back in (#1285) 2019-05-26 10:06:22 +02:00
Konrad Pozniak
83696b5c7f
Animate gif avatars (#1279)
* animate gif avatars

* add setting to enable avatar animation

* cleanup code
2019-05-26 08:46:08 +02:00
Konrad Pozniak
da1089184c
improve performance when clearing notifications (#1283) 2019-05-26 08:45:25 +02:00
Konrad Pozniak
7733e387ee
improve notification fragment layout (#1282)
* improve notification fragment layout

* improve sw640dp notification fragment layout
2019-05-26 08:39:21 +02:00
Konrad Pozniak
959a08437d
remove some unneeded code from BaseActivity (#1281) 2019-05-26 08:12:42 +02:00
Konrad Pozniak
c8bf07ea77
fix crash in SearchFragment (#1266) 2019-05-18 16:52:48 +02:00
pandasoft0
ae5d8b8633 Account Activity enhancements (#1196)
* use the "follow" button as an "unblock" button on the profiles of blocked users

* use the "follow" button as an "unblock" button on the profiles of blocked users

* add an icon to the profiles that can be clicked to mute/unmute the user

* add an icon to the profiles that can be clicked to mute/unmute the user

* Fix view issues

* Fix view issues

* Implement swipe to refresh for Account layout

* Implement swipe to refresh handler at the account screen

* Implement swipe to refresh

* Correct account refresh

* Show Progress Bar

* Show Progress Bar

* Move "itSelf" check into the viewModel

* Change methods access level

* Change TimelineFragment newInstance overload

* Change avatarSize type to Float

* Replace ImageButton with MaterialButton

* Update account activity swipe to refresh colors

* Refactor code

* Refactor code

* Fix crash on moved account refresh

* Show moved account stats

* Update mute button behaviour

* Show tabs and content for moved accounts

* Fix crash on tablet
2019-05-15 12:43:16 +02:00
Konrad Pozniak
419ae80c60
fix images with focal point not shown in timeline (#1256) 2019-05-11 17:35:07 +02:00
Konrad Pozniak
561d4cc284
support custom emoji fonts in poll options (#1250) 2019-05-10 20:08:22 +02:00
pandasoft0
5c61786e05 Add correct Content Description for the preview images at the Compose screen (#1188)
* Add correct Content Description for the preview images at the Compose screen. tuskyapp#1155

* Remove "unknown" string from resource. Format code

* Format code

* Update string resource for content description
2019-05-09 20:25:44 +02:00
pandasoft0
c75b046483 Disable click on preference category items (#1239)
* Disable click on preference category item. tuskyapp#1221

Changed compat preferences widget to AndroidX according to (https://developer.android.com/guide/topics/ui/settings.html)

* Update preference categories clickable
2019-05-09 19:21:22 +02:00
Conny Duck
4d58ecb4ea stop buggy gif animation for now 2019-05-08 21:42:22 +02:00
Conny Duck
51cf1a4ec5 fix crash in StatusBaseViewHolder.getVisibilityDescription 2019-05-08 20:19:31 +02:00
Konrad Pozniak
40d3eb8759
Fix bot icon indicator again (#1249)
* fix handling of bot indicator in timeline

* write bot status into db cache

* remove log
2019-05-07 07:37:00 +02:00
Konrad Pozniak
d7c32258ae
fix timespan plurals (#1240)
* fix timespan plurals

* rename poll timestamp strings and helper method
2019-05-06 09:59:06 +02:00
Konrad Pozniak
b8c32a96de
Poll fixes (#1238)
* update cache when voting on a poll

* fix poll controls color

* don't allow voting on old poll from cache

* check for RecyclerView.NO_POSITION in click listener

* fix crash when voting in a boosted poll
2019-05-05 08:26:17 +02:00
Konrad Pozniak
8f57dddd61
fix poll voting in NotificationFragment (#1234) 2019-05-03 20:42:13 +02:00
Konrad Pozniak
28a76c1a5f
Notification filtering fixes (#1232)
* fix popup menu not shown on Android 5

* use correct no button for notification clearing confirmation dialog
2019-05-03 20:41:55 +02:00
Konrad Pozniak
e735e4843e
Poll notifications (#1229)
* show poll notifications in the app

* show poll notifications in the app

* allow filtering poll notifications in the poll fragment

* show poll notifications in system notifications
2019-05-02 19:44:35 +02:00
Konrad Pozniak
cb82202d4d
fix deleted status reappearing in the timeline (#1225)
* fix deleted status reappearing in the timeline

* fix crash

* fix tests

* fix instrumented tests

* add test for deleted status in timeline
2019-05-01 22:10:00 +02:00
Konrad Pozniak
c739a147cf
fix timeline query not returning poll (#1226) 2019-04-28 10:11:36 +02:00
Konrad Pozniak
8d01e54caf
add support for multiple choice polls (#1212) 2019-04-28 09:58:17 +02:00
Konrad Pozniak
c410600fe4
fix Glide crash in MainActivity (#1224) 2019-04-27 18:20:42 +02:00
Konrad Pozniak
f235a38cca
fix StatusDetailedVieHolder ignoring useAbsoluteTime setting (#1215) 2019-04-25 19:29:15 +02:00
Konrad Pozniak
fd7471f2ab
Polls part 1 - displaying in timelines and voting (#1200)
* add entity classes

* change data models and add database migration

* add polls to StatusViewData

* show poll results

* add methods for vote handling

* add voting interface

* enable voting in TimelineFragment

* update polls immediately

* enable custom emojis for poll options

* enable voting from search fragment

* add voting layout to detailed statuses

* fix tests

* enable voting in ViewThreadFragment

* enable voting in ConversationsFragment

* small refactor for StatusBaseViewHolder
2019-04-22 10:11:00 +02:00
Konrad Pozniak
82d547caf8
fix issue with avatar background recycling (#1209) 2019-04-21 22:59:58 +02:00
Konrad Pozniak
5aa3f958a8
fix downloading media on Android 5 (#1206) 2019-04-21 22:59:49 +02:00
Konrad Pozniak
e7afa0362b
add icon for bot indicator preference (#1208) 2019-04-21 22:59:33 +02:00
kyori19
60d6927af6 Implement redraft feature. (#1190)
* Implement "Delete and Edit" feature

* Some changes to ComposeActivity

Support for uploaded medias, sensitive option.

Fix typo.

Change names of some extra keys.

* Use Glide instead of Picasso

* Pass ArrayList instead of json

* Change wording for re-draft

* Fix test
2019-04-21 15:16:39 +02:00
Konrad Pozniak
ea048c9f0c
fix crash when status has more than 4 images and accessibility service is active (#1204) 2019-04-21 14:29:47 +02:00
Konrad Pozniak
1b9e279064
fix issue with foreground service on Oreo+ (#1203) 2019-04-21 14:28:51 +02:00
Konrad Pozniak
ef66deeae7 fix some lint warnings 2019-04-21 08:24:29 +02:00
Konrad Pozniak
1ae3e86378
remove unneeded CollectionUtil and Either.java (#1201) 2019-04-21 08:24:06 +02:00
Evgeny Petrov
8a6b439408 Added check if text in compose toot field has only whitespaces (#1193) 2019-04-20 12:17:54 +02:00
Konrad Pozniak
fb2d3024ab
fix bug where avatars where shown too small (#1199) 2019-04-19 15:23:30 +02:00
pandasoft0
76ce28980c Migrate to Glide (#1175)
* Replace Picasso library with Glide library tuskyapp#1082

* Replace Picasso library with Glide library tuskyapp#1082

* Update load emoji with glide

* Update context used for Glide

* Removed unused import

* Replace deprecated SimpleTarget with CustomTarget

* Fix crash at the view image fragment, remove override image size

* Replace Single.create with Single.fromCallable

* View image fragment refactor

* Fix after merge

* Try to load cached image first and show progress view on failure

* Try to load cached image first and show progress view on failure
2019-04-16 21:39:12 +02:00
pandasoft0
bc3ea2357b Cancel media uploads when closing ComposeActivity #838 (#1189)
* Cancel media uploads on remove the draft message

* Fix formatting
2019-04-12 22:10:52 +02:00
Bernd
84f561af17 confirm delete notifications (#1186)
* confirm delete notificaitons

* Use same strings as website

* Cleanup
2019-04-12 00:13:06 +02:00
Levi Bard
391cd12974 Add bot indicator overlay to avatars (#1173)
* Add bot indicator overlay to avatars

* Add bot overlay to account list in search view

* Add preference for bot avatar overlay
2019-04-09 20:13:25 +02:00
pandasoft0
63e4c1d4e0 Add CLEAR and FILTER buttons to notifications (#1168)
* Issue tuskyapp#762 add clear notifications button to the top of the Notifications adapter

* Issue tuskyapp#764 add the notifications filter

* Update notifications top bar buttons

* Replace PopupMenu with PopupWindow. Save notifications filter to the account table

* Disable hide top bar on empty content at the notification screen

* Add app bar behavior to the sw640 notification layout

* Fix issue with click on top notification tab
2019-04-09 19:13:54 +02:00
pandasoft0
01234bb94b Add ability to scroll to top by tab click at the Account activity (#1146)
* Issue: tuskyapp#1078
Add ability to scroll to top by tab click at the Account activity

* Fix issue with scroll tabs other than current

* Update scroll on click behavior

* Update code formatting

* Remove unused code

* Move tab click listener from Fragments to Activities
2019-04-08 15:40:16 +02:00
Levi Bard
a2fa49aafb Fix issue #1174 with span parsing (#1183) 2019-04-08 15:27:41 +02:00
Konrad Pozniak
21a817a8d4
change cw icon color on on/off (#1181) 2019-04-08 13:04:54 +02:00
Konrad Pozniak
4facdc9b68
error handling in FiltersActivity (#1180) 2019-04-07 16:33:08 +02:00
Konrad Pozniak
dd02af9911
fix IndexOutOfBoundException caused by ListStatusAccessibilityDelegate (#1178) 2019-04-07 16:32:58 +02:00
Evgeny Petrov
5163927e43 Added "Warning" icon instead of "CW" text. (#1138)
* Added «Warning» icon instead of «CW» text.
Icon source: https://ionicons.com/

* Updated icon to "sms_failed"
2019-04-01 19:19:37 +02:00
Konrad Pozniak
475bff00dc
remove CustomTabsHelper & ResourcesUtils (#1157) 2019-03-30 15:18:40 +01:00
Bernd
0db1a23c4f Update Deps + Cleanup (#1158)
* Fix Typo

* Update build.gradle

* Update Deps

* Update Tests

* Fixes Tests

Without this some tests fail on my PC...

+ also:
"Put this in your gradle.properties:

android.enableUnitTestBinaryResources=true"
from http://robolectric.org/migrating/#project-configuration

* Make everything private

* Fix Warning

* Update TimelineFragment.java

* Update build.gradle

* Update gradle-wrapper.properties

* Update gradle-wrapper.properties

* Update gradle-wrapper.properties

* Fix Compile Errors

e.g.

Type inference failed. Expected type mismatch: inferred type is Preference? but Preference was expected

Type inference failed. Please try to specify type arguments explicitly.

* fix crash

* Grandle Wrapper 5.3

* Revert "Fix Compile Errors"

This reverts commit 4a774a4fe3ce82c84bd7b4d78e1a1c64af97cd0d.

* requirePreference

* oops

* Cleanup

* Update gradle-wrapper.properties
2019-03-30 15:18:16 +01:00
Ivan Kupalov
b66582654d Fix issue with content warnings not being expanded from a11y delegate (#1167) 2019-03-30 09:10:34 +01:00
Konrad Pozniak
9b59a57356
Fix wrong notification avatar being displayed sometimes (#1166) 2019-03-30 09:10:01 +01:00
Konrad Pozniak
29455d5ccd
prevent empty hashtag in TabPreferenceActivity (#1160) 2019-03-28 21:10:53 +01:00
Konrad Pozniak
51a3e0ea5e
fix crash in TimelineFragment (#1159) 2019-03-28 21:10:38 +01:00
Levi Bard
5694a75a4c Fix word boundary detection in filters (#1152) 2019-03-25 21:26:57 +01:00
Konrad Pozniak
291a923d51
fix crash when filter request returns an error (#1150) 2019-03-25 20:35:36 +01:00
Konrad Pozniak
2e52457b32
Hide unknown notifications (#1151)
* hide unknown notifications

* hide unknown notifications
2019-03-25 20:35:21 +01:00
pandasoft0
c3df44eaef Update Notification Adapter to support status created timestamp refresh (#1130)
* Update Notification Adapter to support status created timestamp refresh

* Format the code
2019-03-25 13:44:31 +01:00
Konrad Pozniak
0c48dcf06c
add hashtag tabs (#1145)
* add hashtag tabs

* address review feedback
2019-03-24 08:59:55 +01:00
Bernd
e839a2c9fe fix sharing to Tusky (#1140)
fixes duplicate title when sharing from Feedly or Google News
2019-03-23 12:50:24 +01:00
Levi Bard
205f3771d4 Add option to download all media for a toot with one tap. (#1121)
Addresses #966
2019-03-23 12:49:36 +01:00
pandasoft0
f1b9f7e9fe Fix issue with floating media bar after permissions request (#1134) 2019-03-20 19:26:39 +01:00
Levi Bard
5135daad2c Share filters with web client (#956)
* First step toward synchronized content filters

* Add simple filter management UI

* Remove old regex filter UI

* More cleanup

* Escape filter phrases when applying them via regex

* Apply code review feedback

* Fix live timeline update when filters change
2019-03-20 19:25:26 +01:00
Konrad Pozniak
463b008090
change project website url (#1128) 2019-03-18 15:47:02 +01:00
Konrad Pozniak
cffb33d705
fix proguard issue with NotificationTypeAdapter (#1129) 2019-03-17 07:57:10 +01:00