Commit Graph

1100 Commits

Author SHA1 Message Date
Alibek Omarov 8900e45015 markdown: now markdown mode is restored from drafts 2019-12-17 03:28:28 +03:00
Alibek Omarov 74ea67627c db: upgrade to 21, add markdownMode column 2019-12-17 03:28:28 +03:00
Alibek Omarov 793c21eb85 markdown: implement choosing markdown mode in compose activity and sending toot with it 2019-12-17 03:28:28 +03:00
Alibek Omarov 5620120b9f Status: add optional content_type paramater 2019-12-17 03:28:28 +03:00
Alibek Omarov ee4fd2c351 ComposeActivity: if our instance is pleroma, disable mastodon-specific attachments limits 2019-12-17 03:28:28 +03:00
Alibek Omarov cdc3dafdda Instance: a way to check if we have Pleroma with Mastodon API extensions 2019-12-17 03:28:28 +03:00
Levi Bard 0a516eaf13 Make polls respect content warning visibility setting (#1583)
* Make polls respect content warning visibility setting

* Only perform poll setup when poll is visible
2019-12-16 19:51:21 +01:00
kyori19 d137e6c63c List tabs (#1570)
* List tabs

* Add comment

* Move decoder part to TabData.createTabDataFromId

* Fix drawable tint

* Use dedicated view for list picker

* Error log

* Fix logging

Co-Authored-By: Konrad Pozniak <connyduck@users.noreply.github.com>

* Fix tint color

Co-Authored-By: Konrad Pozniak <connyduck@users.noreply.github.com>

* Fix missing import

* Move encoding part too

* Fix comment

* Fix decoder

* Revert "Fix decoder"

This reverts commit fdc45aac9c113348f8740e6692d2d8e9ace14f7f.

* Revert "Fix comment"

This reverts commit 704b4e6d2e5545d5f2d20c9bc6bc276d6257d119.

* Revert "Move encoding part too"

This reverts commit 32e77346ff98ae1133e76ab6dfd880b26171005e.

* Revert "Move decoder part to TabData.createTabDataFromId"

This reverts commit d1cd2070ab564d2e33874225272a71f0904d681e.
2019-12-02 16:53:24 +01:00
Konrad Pozniak 8a65f91d2c Bookmarks (#1560)
* add bookmarks to timelines

* add Bookmarks to main menu

* cleanup

* handle BookmarkEvent

* fix tests

* fix bookmark handling in NotificationsFragment

* add bookmark accessibility actions
2019-11-19 10:15:32 +01:00
Konrad Pozniak ee247e92a4 fix crashes related to missing Rx error handler (#1561) 2019-11-17 20:59:13 +01:00
Konrad Pozniak 62a4b830da fix null search when refreshing hashtags (#1562) 2019-11-17 20:58:54 +01:00
Konrad Pozniak 4d4c4cdb3d Migrate to ViewPager2 (#1544)
* migrate MainActivty to ViewPager2

* migrate AccountActivty to ViewPager2

* migrate ViewMediaActivty to ViewPager2

* migrate SearchActivity to ViewPager2

* checkin missing AccountPagerAdapter file

* remove unused class ImageViewPager

* replace SparseArray with MutableList
2019-11-06 20:17:53 +01:00
Konrad Pozniak c02a8c3a41 add build customization options (#1532) 2019-10-29 20:30:46 +01:00
Konrad Pozniak d5d9af4fde Upgrade api level to Android 10, implement new sharing api (#1537)
* upgrade api level to Android 10, resolve compile errors

* use androidx.preference.PreferenceManager instead of deprecated platform class

* add hyphenation to important TextViews

*  setBottomSheetCallback -> addBottomSheetCallback

* implement new sharing api

* improve TuskyTileService so it shows account picker when multiple accounts are present

* delete unused AccountChooserService

* fix test

* improve ShareShortcutHelper

* remove debug log statement

* improve image loading fallback behavior in ShareShortcutHelper

* improve behavior on foldable devices
2019-10-22 21:18:20 +02:00
Konrad Pozniak c5dad33e63 fix login on Chromebook (#1533) 2019-10-13 21:09:23 +02:00
Konrad Pozniak 4c81f71afe Refactor theming (#1529)
* fix toolbars

* use toolbar in MainActivity

* update AccountActivity appbar

* update material design library

* remove unneeded tabs styling

* fix black theme
2019-10-12 20:00:29 +02:00
Levi Bard 66c084cad2 When opening a post via "Open As", if post lookup from the target instance fails, display an error instead of opening the post in the browser. (#1531)
Addresses #1526
2019-10-11 17:51:47 +02:00
Levi Bard 5ce9a416b9 Don't interpret html inside poll options. (#1527)
* Don't interpret html inside poll options.
Closes #1362

* Update translations

* Mark poll_percent_format as untranslatable
2019-10-11 17:35:22 +02:00
Konrad Pozniak e569b6aa5c fix avatars with non-square aspect ratio display (#1528) 2019-10-10 18:43:48 +02:00
Konrad Pozniak 14ce0c4952 upgrade appcompat, fix nightmode (#1455)
* upgrade appcompat, fix language switching & nightmode

* cleanup ThemeUtils

* upgrade dependencies

* change active boost icon (#1513)

* upgrade jetifier and android gradle plugin

* fix FilterTest
2019-10-03 19:58:21 +02:00
kyori19 dc933b439d Scheduled toot (#1004)
* Scheduled toot

* Hide scheduled toot button if version < 2.7.0

* Fix timeline reloading after toot

* Add edit icon to ComposeScheduleView

* Add button to reset scheduled toot

* Close bottom sheet and change button color after time a was selected

* Fix edit icon's size

* List of scheduled toots

* Fix instance version check

* Use MaterialDatePicker

* Set date and time consecutively

* Add licenses
2019-10-02 21:28:12 +02:00
Conny Duck 8593cd7da7 fix AccountActivity scroll animation again 2019-10-01 18:49:34 +02:00
Konrad Pozniak a387b9de20 fix videos not always keeping aspect ratio (#1508) 2019-10-01 18:24:09 +02:00
Konrad Pozniak e776488a1b fix requestLayout() improperly called warning in AccountActivity (#1507) 2019-10-01 08:08:21 +02:00
Konrad Pozniak 89eb1e2987 remove callList from BaseActivity (#1503)
* remove callList from BaseActivity

* remove callList from BaseActivity
2019-09-28 16:29:40 +02:00
Konrad Pozniak 62e9db7f6b Fix crash in AccountListFragment (#1502) 2019-09-28 12:52:10 +02:00
Ivan Kupalov 47edb0e37c Fix screen reader not announcing post content in some cases (#1495) 2019-09-24 20:33:41 +02:00
Konrad Pozniak 18702da998 filter polls (#1496) 2019-09-24 20:33:29 +02:00
Konrad Pozniak ec145eefb1 fix content warning edittext not losing focus when its hidden (#1498) 2019-09-24 20:33:05 +02:00
Konrad Pozniak b888dbbcf8 remove duplicate request when timeline is empty (#1491) 2019-09-23 17:09:13 +02:00
Konrad Pozniak 0d10b1fc18 fix build error 2019-09-22 09:49:26 +02:00
Konrad Pozniak f09deb2975 upgrade autodispose (#1490)
* upgrade autodispose

* set AutoDisposePlugins.setHideProxies to false
2019-09-22 08:19:44 +02:00
Konrad Pozniak 03cd374792 Remove search v1 (#1484)
* remove search v1, convert MastodonApi to Kotlin

* format MastodonApi nicely

* use default params in ConversationRepository

* improve code for LoginActivity
2019-09-22 08:18:44 +02:00
Konrad Pozniak 573568f1c9 upgrade glide (#1489) 2019-09-21 21:35:51 +02:00
Konrad Pozniak 2e300ed494 use singletonList in getChangePayload (#1486) 2019-09-17 18:44:33 +02:00
Konrad Pozniak 18dadc843a Fix crash when status date is null (#1480)
* Fix crash when status date is null

* Fix crash when status date is null
2019-09-15 09:10:07 +02:00
Konrad Pozniak 83311b7f08 fix crash because of null visibility (#1478)
* fix crash because of null visibility

* fix crash because of null visibility
2019-09-12 20:03:07 +02:00
Konrad Pozniak feeeb4b268 Fix statuses in search not openening details (#1479) 2019-09-12 20:02:30 +02:00
Konrad Pozniak 285aa5f7fd fix audio attachments not opening in some cases (#1473) 2019-09-08 19:35:43 +02:00
Ivan Kupalov df61b9ce33 Notify thread adapter when sensitive media is shown (#1472) 2019-09-08 10:30:59 +02:00
Conny Duck 76c721a405 show edit button on own profile again
closes #1471
2019-09-07 16:34:17 +02:00
Conny Duck 0004ad88c3 fix regression with weird status expand animation 2019-09-07 16:22:56 +02:00
Conny Duck 8d8a525e76 fix crash in StatusBaseViewHolder 2019-09-07 13:14:16 +02:00
Konrad Pozniak 2a52305190 only show Progress Dialog if necessary when sending toot (#1470) 2019-09-06 21:40:11 +02:00
Konrad Pozniak 21fc3cba4f Add audio support for timelines (#1466)
* Add minimal audio support for timelines

* fix attachment description formatting
2019-09-05 21:07:01 +02:00
Konrad Pozniak 7a1bd82c54 upgrade Android gradle plugin, Kotlin and jetifier (#1468) 2019-09-03 18:35:42 +02:00
Konrad Pozniak fd135faa8f fix error and content overlapping in NotificationsFragment (#1465) 2019-09-03 18:34:00 +02:00
Konrad Pozniak 2bf1765b86 use status source for delete and redraft (#1461)
* use status source for delete and redraft

* make delete & redraft work on Pleroma again

* add error handling
2019-08-28 19:54:46 +02:00
Konrad Pozniak 6dd177bc50 fix poll validation (#1459) 2019-08-27 20:27:38 +02:00
Konrad Pozniak 50b9cdf117 Create polls (#1452)
* add AddPollDialog

* add support for pleroma poll options

* add PollPreviewView

* add Poll support to drafts

* add license header, cleanup

* rename drawable files to correct size

* fix tests

* fix bug with Poll having wrong duration after delete&redraft

* add input validation

* grey out poll button when its disabled

* code cleanup & small improvements
2019-08-22 20:30:08 +02:00
Ivan Kupalov 01646fd8bf Load sensitive media previews only when shown (#1439) 2019-08-17 21:37:26 +02:00
Ivan Kupalov 3c7010e671 Fix image viewer & transitions (#1448) 2019-08-17 20:05:24 +02:00
Konrad Pozniak 9139059bb4 enable reporting users without statuses (#1445) 2019-08-17 09:08:58 +02:00
Konrad Pozniak 09dd2afff0 fix CalledFromWrongThreadException in ComposeActivity (#1447) 2019-08-10 21:11:45 +02:00
Ivan Kupalov dbaab6e612 Fix search bugs, fix #1403 (#1440) 2019-08-04 20:32:44 +02:00
Levi Bard 0454601ed6 Add support for instance property `max_bio_chars` (#1414)
* Migrate getInstance from Call to Single

* Add support for instance max_bio_chars.
Addresses #1329
2019-08-04 20:25:07 +02:00
Ivan Kupalov b5e3a482a7 Use cached preview as thumbnail in ViewImageFragment, fix #1267 (#1344)
* Use cached preview as thumbnail in ViewImageFragment, fix #1267

* Use cached preview as thumbnail in ViewImageFragment, fix #1267
2019-08-04 20:22:57 +02:00
Konrad Pozniak 46c92cdfe6 fix avatar radius and alignment in NotificationsAdapter (#1437) 2019-08-01 20:47:15 +02:00
Konrad Pozniak 2860133fd7 fix size of visibility icon on detailed toot page (#1428) 2019-07-31 19:07:01 +02:00
Konrad Pozniak 68376b4440 upgrade dagger (#1424) 2019-07-28 20:00:19 +02:00
Konrad Pozniak 9885065f02 add option to always expand content warnings (#1422) 2019-07-28 19:59:52 +02:00
Konrad Pozniak 923bd32aea cleanup code in StatusViewHolders (#1418)
* cleanup code in status ViewHolder

* add check for reblogButton back in
2019-07-27 21:53:28 +02:00
Konrad Pozniak e4896d317e fix timestamp not updating in notifications (#1416) 2019-07-27 21:52:00 +02:00
Konrad Pozniak 7d9edf1b33 fix crash in FiltersActivity (#1409) 2019-07-25 12:17:52 +02:00
Konrad Pozniak 802d07cc1c fix notifications opening the wrong account (#1408) 2019-07-25 12:17:30 +02:00
Konrad Pozniak bbe77f5345 fix the "always mark media as sensitive" setting not being respected (#1407) 2019-07-25 12:17:07 +02:00
Konrad Pozniak 78b7a35858 show custom emojis in account field names (#1406) 2019-07-25 12:16:42 +02:00
Konrad Pozniak 590cfbbcd2 fix mentions outside of content warnings not being clickable (#1405) 2019-07-25 12:16:19 +02:00
Konrad Pozniak 43cf0e0ec8 fix shouldTrimStatus and add tests (#1404) 2019-07-25 12:15:54 +02:00
Ivan Kupalov f5bc6c6fc8 Fix crash on empty status messages (#1402) 2019-07-20 11:37:28 +02:00
HellPie 4ec0c182f7 Transfer SmartLengthInputFilter license to Tusky (#1384)
* Transfer SmartLengthInputFilter in-header license

Transfer license for file "SmartLengthInputFilter.java" from me (Diego Rossi) to Tusky and therefore also change it from the original Apache 2.0 to currently GPLv3. This was a mistake that has been sitting around for way too long.

* Rewrite SmartLengthInputFilter from Java to Kotlin

This has been done by hand, without the custom copy-paste tool.

* Fix bad references in Java files using SmartLengthInputFilter features

* Shorten code in Java classes referencing SmartLengthInputFilter instance

* Refactor SmartLengthInputFilter from class to singleton Kotlin object

* Move hasBadRatio to become a toplevel function

* Patch up all the files affected by SmartLengthInputFilter changes

* Length in SmartLengthInputFilter is const 500, simplify code accordingly

* More meaningful name for toplevel function for checking trimming ability

* Add missing license header
2019-07-19 20:47:30 +02:00
pandasoft0 246956bee1 Improve search results (#1327)
* Add entities and request for search APIv2

* Implement search adapter and fragment

* Fix issue with snackbar

* Implement search accounts fragment

* Implement generic search fragment

* Remove unneeded import

* Implement "status" actions, fix issues

* Remove SFragment dependency

* Update app/src/main/java/com/keylesspalace/tusky/components/search/fragments/SearchStatusesFragment.kt

Co-Authored-By: Konrad Pozniak <connyduck@users.noreply.github.com>

* Clean-up post review suggestions

* Make TabLayout background colour match search bar

* Corrected method call syntax

* Added SwipeRefreshLayout to SearchFragment

* Fixed refresh to update all three tabs
2019-07-19 20:10:20 +02:00
Konrad Pozniak 659781eea4 fix avatars and display names in AccountsInListFragment (#1392)
* fix avatars and display names in AccountsInListFragment

* correctly emojify display names
2019-07-16 20:19:57 +02:00
Konrad Pozniak 39e7bf56f1 update timestamps on pull-to-refresh even when no new statuses are fetched (#1393) 2019-07-16 19:51:44 +02:00
Konrad Pozniak b72fbc6d4c upgrade dependencies (#1389) 2019-07-16 19:36:04 +02:00
Konrad Pozniak 95de73e873 fix glide crash in MainActivity (again) (#1394) 2019-07-16 19:27:26 +02:00
Konrad Pozniak e1c74dd8ca fix some lint warnings and Kotlin style issues (#1390) 2019-07-16 19:26:55 +02:00
Konrad Pozniak dd895202bf make avatar images in drawer rounded squares (#1388) 2019-07-16 19:26:41 +02:00
Konrad Pozniak 91102ccb43 fix Glide crash in MainActivity (#1379)
* fix Glide crash in MainActivity

* make emojiInitCallback final
2019-07-10 21:10:07 +02:00
Konrad Pozniak 3d5fef60ed fix card view outline being off a few pixels (#1375) 2019-07-10 06:53:21 +02:00
Konrad Pozniak cec2fe6b68 fix mute action not being correctly displayed (#1376) 2019-07-10 06:52:51 +02:00
Konrad Pozniak 0581b51999 fix timeline reloading and favs/boosts/polls showing up at wrong pos (#1374) 2019-07-10 06:52:13 +02:00
Levi Bard 934d313cb3 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 c4f648308c Fix respecting bot overlay preference in detailed status view. (#1368)
Closes #1364
2019-07-07 14:41:07 +02:00
Konrad Pozniak 59a464e5ae fix crash caused by broken mention (#1360) 2019-07-02 10:55:02 +02:00
Konrad Pozniak e41fa3b84c 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 cc2b4ee79a fix build warnings (#1331) 2019-06-24 22:15:31 +02:00
Konrad Pozniak 713d53e53b fix vanishing toots bug when refreshing (#1343) 2019-06-24 21:43:14 +02:00
Konrad Pozniak 5b93aa4cc5 fix image transition from timeline to ViewMediaActivity (#1348) 2019-06-24 20:52:38 +02:00
Levi Bard a5289861ed Add @ and # helper buttons to compose activity (#1277)
Addresses #810
2019-06-24 10:33:05 +02:00
Levi Bard 3adc14d95f Add the 'whole word' setting to the filter preferences UI (#1278) 2019-06-24 10:11:25 +02:00
Konrad Pozniak 6a0d7014f5 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 cacac782ca Show media descriptions in timeline when previews are disabled. (#1284) 2019-06-22 20:38:53 +02:00
Konrad Pozniak c746ed0833 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 5efc0c68af remove boosted status when the original author was blocked or muted (#1335) 2019-06-22 08:05:24 +02:00
Konrad Pozniak 9094a6d438 update Room to 2.1.0 (#1323) 2019-06-17 13:43:11 +02:00
Konrad Pozniak 9176c2811e fix conversation avatars (#1324) 2019-06-17 13:14:44 +02:00
Marie Axelsson 36b8664fb4 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 a191c4c097 Disable sensitive media send if medias list is empty (#1309) 2019-06-11 16:44:02 +02:00
pandasoft0 1f7e8a079b 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 78c02c9d42 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 d5d834526c Fix onBackPressed never called in ComposeActivity (#1317) 2019-06-10 19:40:07 +02:00
Konrad Pozniak 5fa4ed82d0 Update Dagger & other deps (#1315)
* update dagger

* update remaining deps
2019-06-09 19:48:04 +02:00
pandasoft0 34d130f12f 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 5c5ae15a63 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 c1dcc4dda4 correctly emojify account name in AccountActivity (#1297) 2019-06-05 21:35:29 +02:00
Konrad Pozniak c0d95209a8 cleanup unused resources (#1300) 2019-06-02 22:02:03 +02:00
Konrad Pozniak 421cfe9f3a cleanup entity classes and ViewThreadFragment (#1302)
* cleanup entity classes and ViewThreadFragment

* fix tests
2019-06-02 21:23:18 +02:00
Konrad Pozniak 5b3751f9bd apply filters to boosted statuses (#1299) 2019-06-02 21:21:56 +02:00
mike castleman 0e5700c652 enhance bad-domain detection 2019-06-01 15:29:15 -04:00
mike castleman 931b1ea7d9 rick roll instead of logging in on selected domains 2019-06-01 14:47:14 -04:00
Konrad Pozniak d91e9ad06f 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 8a6c8f00ec fix(MainActivity,ComposeActivity): use onKeyDown() instead 2019-05-31 17:35:58 +09:00
Konrad Pozniak 0473f71f9a Merge pull request #1288 from tuskyapp/poll-description
Minimal screen reader support for polls
2019-05-30 21:53:56 +02:00
Gyuhwan Park 314859f9c0 feature(ComposeActivity): add shortcut for send new toot (CTRL + ENTER) [#505] 2019-05-30 21:22:52 +09:00
Gyuhwan Park 8dd61ba9da feature(MainActivity): add shortcut for compose new toot (SHIFT + N or CTRL + N) [#505] 2019-05-30 21:20:53 +09:00
lenchan139 2f4cbba433 make a copy of file before upload (#1294) 2019-05-29 20:26:33 +02:00
charlag 54b2727a5b Minimal screen reader support for polls 2019-05-26 15:56:26 +02:00
Konrad Pozniak 1cc55959ac add avatar placeholders back in (#1285) 2019-05-26 10:06:22 +02:00
Konrad Pozniak fb45e0e2bb 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 df401e90b0 improve performance when clearing notifications (#1283) 2019-05-26 08:45:25 +02:00
Konrad Pozniak 44e642e137 improve notification fragment layout (#1282)
* improve notification fragment layout

* improve sw640dp notification fragment layout
2019-05-26 08:39:21 +02:00
Konrad Pozniak bbb693f433 remove some unneeded code from BaseActivity (#1281) 2019-05-26 08:12:42 +02:00
Konrad Pozniak 86fda3e762 fix crash in SearchFragment (#1266) 2019-05-18 16:52:48 +02:00
pandasoft0 b4516cac04 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 7ca8507c3c fix images with focal point not shown in timeline (#1256) 2019-05-11 17:35:07 +02:00
Konrad Pozniak af6a7e5872 support custom emoji fonts in poll options (#1250) 2019-05-10 20:08:22 +02:00
pandasoft0 1ed9a14595 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 a19155af2d 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 a8a39613dd stop buggy gif animation for now 2019-05-08 21:42:22 +02:00
Conny Duck ed8da7d747 fix crash in StatusBaseViewHolder.getVisibilityDescription 2019-05-08 20:19:31 +02:00
Konrad Pozniak ae446d182d 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 815106940a fix timespan plurals (#1240)
* fix timespan plurals

* rename poll timestamp strings and helper method
2019-05-06 09:59:06 +02:00
Konrad Pozniak 8d33ef1456 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 9a4dfc632f fix poll voting in NotificationFragment (#1234) 2019-05-03 20:42:13 +02:00
Konrad Pozniak e400d53230 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 05348ef957 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 6297f39040 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 4ab06e679f fix timeline query not returning poll (#1226) 2019-04-28 10:11:36 +02:00
Konrad Pozniak 173b878c3b add support for multiple choice polls (#1212) 2019-04-28 09:58:17 +02:00
Konrad Pozniak 9ca59d69fa fix Glide crash in MainActivity (#1224) 2019-04-27 18:20:42 +02:00
Konrad Pozniak 4881e29f19 fix StatusDetailedVieHolder ignoring useAbsoluteTime setting (#1215) 2019-04-25 19:29:15 +02:00
Konrad Pozniak b1e68dfc38 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 fe0c9d19b4 fix issue with avatar background recycling (#1209) 2019-04-21 22:59:58 +02:00
Konrad Pozniak 2c2c8fa991 fix downloading media on Android 5 (#1206) 2019-04-21 22:59:49 +02:00
Konrad Pozniak 57eded9a05 add icon for bot indicator preference (#1208) 2019-04-21 22:59:33 +02:00
kyori19 b421787bbe 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 0e786cfd16 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 0956489cb8 fix issue with foreground service on Oreo+ (#1203) 2019-04-21 14:28:51 +02:00
Konrad Pozniak 41268859b1 fix some lint warnings 2019-04-21 08:24:29 +02:00