Konrad Pozniak
352ff3a2d1
give media previews a rounded outline ( #1617 )
...
* give media previews a rounded outline
* give media previews a rounded outline in ReportActivity
2020-01-03 20:22:16 +01:00
Ivan Kupalov
426e7edb73
Fix missing cases of using StatusDisplayOptions ( #1614 )
2020-01-03 20:22:02 +01:00
Konrad Pozniak
cdb9d87f41
use RxAwareViewModel for more ViewModels ( #1613 )
...
* use RxAwareViewModel for more ViewModels
* fix ReportViewModel
2020-01-02 18:50:58 +01:00
Konrad Pozniak
88d59da13c
fix poll button being visible below voted poll ( #1612 )
2019-12-31 16:56:04 +01:00
Konrad Pozniak
8a9d62e654
Merge pull request #1610 from tuskyapp/improve_scheduled_toot
...
Improve ScheduledTootActivity
2019-12-31 15:00:23 +01:00
Konrad Pozniak
54f04fb4d7
address PR feedback
2019-12-31 13:57:24 +01:00
Ivan Kupalov
7623962a0d
Use blurhash as image preview and as sensitive media cover, close #1571 ( #1581 )
...
* Use blurhash as image preview and as sensitive media cover, close #1571
* Fix focal point for blurhashes
* Fix video indicator overlapping sensitive media indicator
* Add a preference for blurhash
* Add blurhash to report UI.
* Introduce StatusDisplayOptions
2019-12-30 21:37:20 +01:00
Konrad Pozniak
76026f5afa
add license headers
2019-12-30 21:09:10 +01:00
Konrad Pozniak
f0112743eb
remove debug logging
2019-12-30 21:05:03 +01:00
Konrad Pozniak
b66faab71c
add empty screen message
2019-12-30 21:01:38 +01:00
Konrad Pozniak
75378e5284
color the SwipeRefreshLayout
2019-12-30 20:54:00 +01:00
Konrad Pozniak
7107018ae2
clean up code
2019-12-30 20:48:01 +01:00
Konrad Pozniak
84a3280964
move to androidx paging
2019-12-30 20:40:27 +01:00
kyori19
2994af7091
Fix ComposeOptions.visibility not applied ( #1605 )
2019-12-27 21:02:16 +01:00
Conny Duck
63d6fe7270
improve layout names
2019-12-22 11:55:26 +01:00
Conny Duck
97350c59fa
move classes to component packages
2019-12-22 11:47:34 +01:00
Conny Duck
1471042fee
convert ScheduledTootAdapter to Kotlin
2019-12-22 11:42:13 +01:00
Konrad Pozniak
ce2ee660ae
add test for VersionUtils ( #1602 )
...
* add test for VersionUtils
* add nullability annotation to VersionUtils
2019-12-21 18:56:30 +01:00
Konrad Pozniak
c44dd455b4
Implement identity proof api ( #1597 )
...
* implement identity proof api
* fix warnings in AccountActivity
* fix createClickableText method
* improve error handling
* use combineOptionalLiveData to simplify code
2019-12-21 18:56:16 +01:00
Konrad Pozniak
c253f6b23b
delete unused stuff ( #1601 )
2019-12-21 17:32:42 +01:00
Konrad Pozniak
a795da81b4
fix replying to toots ( #1600 )
2019-12-21 15:56:19 +01:00
Konrad Pozniak
eca3b5379e
fix delete&redraft losing toot text ( #1599 )
2019-12-21 15:56:07 +01:00
Konrad Pozniak
516546a3bf
upgrade androidx.browser to 1.2.0 ( #1595 )
2019-12-20 20:08:02 +01:00
Konrad Pozniak
60b9a9c40b
upgrade SparkButton to 3.0.0 ( #1594 )
2019-12-20 19:52:36 +01:00
Alibek Omarov
a8f3070889
ScheduledTootActivity: fix toolbar back button #1586 ( #1591 )
2019-12-20 19:14:22 +01:00
Ivan Kupalov
8770fbe986
ComposeActivity refactor ( #1541 )
...
* Convert ComposeActivity to Kotlin
* More ComposeActivity cleanups
* Move ComposeActivity to it's own package
* Remove ComposeActivity.IntentBuilder
* Re-do part of the media downsizing/uploading
* Add sending of status to ViewModel, draft media descriptions
* Allow uploading video, update description after uploading
* Enable camera, enable upload cancelling
* Cleanup of ComposeActivity
* Extract CaptionDialog, extract ComposeActivity methods
* Fix handling of redrafted media
* Add initial state and media uploading out of Activity
* Change ComposeOptions.mentionedUsernames to be Set rather than List
We probably don't want repeated usernames when we are writing a post
and Set provides such guarantee for free plus it tells it to the
callers. The only disadvantage is lack of order but it shouldn't be a
problem.
* Add combineOptionalLiveData. Add docs.
It it useful for nullable LiveData's. I think we cannot differentiate
between value not being set and value being null so I just added the
variant without null check.
* Add poll support to Compose.
* cleanup code
* move more classes into compose package
* cleanup code
* fix button behavior
* add error handling for media upload
* add caching for instance data again
* merge develop
* fix scheduled toots
* delete unused string
* cleanup ComposeActivity
* fix restoring media from drafts
* make media upload code a little bit clearer
* cleanup autocomplete search code
* avoid duplicate object creation in SavedTootActivity
* perf: avoid unnecessary work when initializing ComposeActivity
* add license header to new files
* use small toot button on bigger displays
* fix ComposeActivityTest
* fix bad merge
* use Singles.zip instead of Single.zip
2019-12-19 19:09:40 +01:00
Mélanie Chauvel (ariasuni)
54b3d1f8cd
Add close icon to tabs in Tabs account preferences page ( #1588 )
...
* Add close icon to tabs in Tabs account preferences page
* Improve code according to code review
2019-12-19 18:35:55 +01:00
Levi Bard
bac3003182
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
d6ae071a09
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
d9694df0c2
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
d6ec5ca8d3
fix crashes related to missing Rx error handler ( #1561 )
2019-11-17 20:59:13 +01:00
Konrad Pozniak
7bccf23f69
fix null search when refreshing hashtags ( #1562 )
2019-11-17 20:58:54 +01:00
Konrad Pozniak
d2ca776b34
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
83ced20e4a
add build customization options ( #1532 )
2019-10-29 20:30:46 +01:00
Konrad Pozniak
78b5aa8baf
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
98d813a5cc
fix login on Chromebook ( #1533 )
2019-10-13 21:09:23 +02:00
Konrad Pozniak
bee10bf375
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
44bb1999af
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
a308b4c139
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
1e0515f4ab
fix avatars with non-square aspect ratio display ( #1528 )
2019-10-10 18:43:48 +02:00
Konrad Pozniak
2dad358c96
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
9e4c19a47e
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
8a2d583b83
fix AccountActivity scroll animation again
2019-10-01 18:49:34 +02:00
Konrad Pozniak
fe304b4e83
fix videos not always keeping aspect ratio ( #1508 )
2019-10-01 18:24:09 +02:00
Konrad Pozniak
c35f744a17
fix requestLayout() improperly called warning in AccountActivity ( #1507 )
2019-10-01 08:08:21 +02:00
Konrad Pozniak
8f92274e0b
remove callList from BaseActivity ( #1503 )
...
* remove callList from BaseActivity
* remove callList from BaseActivity
2019-09-28 16:29:40 +02:00
Konrad Pozniak
1fd6a7cd72
Fix crash in AccountListFragment ( #1502 )
2019-09-28 12:52:10 +02:00
Ivan Kupalov
33a78a59a0
Fix screen reader not announcing post content in some cases ( #1495 )
2019-09-24 20:33:41 +02:00
Konrad Pozniak
a9440ea2ab
filter polls ( #1496 )
2019-09-24 20:33:29 +02:00
Konrad Pozniak
ca3ce63c80
fix content warning edittext not losing focus when its hidden ( #1498 )
2019-09-24 20:33:05 +02:00
Konrad Pozniak
0d465d3bee
remove duplicate request when timeline is empty ( #1491 )
2019-09-23 17:09:13 +02:00
Konrad Pozniak
b79e86cacd
fix build error
2019-09-22 09:49:26 +02:00
Konrad Pozniak
546cb4bacc
upgrade autodispose ( #1490 )
...
* upgrade autodispose
* set AutoDisposePlugins.setHideProxies to false
2019-09-22 08:19:44 +02:00
Konrad Pozniak
54a0d5406a
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
fd1fcf3b97
upgrade glide ( #1489 )
2019-09-21 21:35:51 +02:00
Konrad Pozniak
de4473b2b3
use singletonList in getChangePayload ( #1486 )
2019-09-17 18:44:33 +02:00
Konrad Pozniak
29ea05a0e5
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
c04c51ce41
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
9b8b036974
Fix statuses in search not openening details ( #1479 )
2019-09-12 20:02:30 +02:00
Konrad Pozniak
871e720ae5
fix audio attachments not opening in some cases ( #1473 )
2019-09-08 19:35:43 +02:00
Ivan Kupalov
60383e112a
Notify thread adapter when sensitive media is shown ( #1472 )
2019-09-08 10:30:59 +02:00
Conny Duck
98f2cd0789
show edit button on own profile again
...
closes #1471
2019-09-07 16:34:17 +02:00
Conny Duck
0e2a786b61
fix regression with weird status expand animation
2019-09-07 16:22:56 +02:00
Conny Duck
653d77bab2
fix crash in StatusBaseViewHolder
2019-09-07 13:14:16 +02:00
Konrad Pozniak
d83e7c4c70
only show Progress Dialog if necessary when sending toot ( #1470 )
2019-09-06 21:40:11 +02:00
Konrad Pozniak
344863b5d4
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
d4f80f308d
upgrade Android gradle plugin, Kotlin and jetifier ( #1468 )
2019-09-03 18:35:42 +02:00
Konrad Pozniak
04da5f40c7
fix error and content overlapping in NotificationsFragment ( #1465 )
2019-09-03 18:34:00 +02:00
Konrad Pozniak
42a6b98d4d
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
44163d8720
fix poll validation ( #1459 )
2019-08-27 20:27:38 +02:00
Konrad Pozniak
51c6852492
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
444df322a7
Load sensitive media previews only when shown ( #1439 )
2019-08-17 21:37:26 +02:00
Ivan Kupalov
a3fa0647b6
Fix image viewer & transitions ( #1448 )
2019-08-17 20:05:24 +02:00
Konrad Pozniak
d13a341a35
enable reporting users without statuses ( #1445 )
2019-08-17 09:08:58 +02:00
Konrad Pozniak
1a6f8d5b24
fix CalledFromWrongThreadException in ComposeActivity ( #1447 )
2019-08-10 21:11:45 +02:00
Ivan Kupalov
0b29b0330b
Fix search bugs, fix #1403 ( #1440 )
2019-08-04 20:32:44 +02:00
Levi Bard
ce01e6de22
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
9805a985b2
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
70b3ce7487
fix avatar radius and alignment in NotificationsAdapter ( #1437 )
2019-08-01 20:47:15 +02:00
Konrad Pozniak
507cb81d6a
fix size of visibility icon on detailed toot page ( #1428 )
2019-07-31 19:07:01 +02:00
Konrad Pozniak
941cdf198a
upgrade dagger ( #1424 )
2019-07-28 20:00:19 +02:00
Konrad Pozniak
8834c22120
add option to always expand content warnings ( #1422 )
2019-07-28 19:59:52 +02:00
Konrad Pozniak
588775ff9b
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
57edf86495
fix timestamp not updating in notifications ( #1416 )
2019-07-27 21:52:00 +02:00
Konrad Pozniak
ce84233c4e
fix crash in FiltersActivity ( #1409 )
2019-07-25 12:17:52 +02:00
Konrad Pozniak
51da2a15e8
fix notifications opening the wrong account ( #1408 )
2019-07-25 12:17:30 +02:00
Konrad Pozniak
fbd04cbe7b
fix the "always mark media as sensitive" setting not being respected ( #1407 )
2019-07-25 12:17:07 +02:00
Konrad Pozniak
7ae07111af
show custom emojis in account field names ( #1406 )
2019-07-25 12:16:42 +02:00
Konrad Pozniak
b15b4fcf83
fix mentions outside of content warnings not being clickable ( #1405 )
2019-07-25 12:16:19 +02:00
Konrad Pozniak
f975522e63
fix shouldTrimStatus and add tests ( #1404 )
2019-07-25 12:15:54 +02:00
Ivan Kupalov
a23fdc60a7
Fix crash on empty status messages ( #1402 )
2019-07-20 11:37:28 +02:00
HellPie
87285ae5bf
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
3b1288e99c
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
e8ecdb88cf
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
b1c2fcc157
update timestamps on pull-to-refresh even when no new statuses are fetched ( #1393 )
2019-07-16 19:51:44 +02:00
Konrad Pozniak
d932912616
upgrade dependencies ( #1389 )
2019-07-16 19:36:04 +02:00
Konrad Pozniak
16bb011f6a
fix glide crash in MainActivity (again) ( #1394 )
2019-07-16 19:27:26 +02:00
Konrad Pozniak
83f9638aaf
fix some lint warnings and Kotlin style issues ( #1390 )
2019-07-16 19:26:55 +02:00
Konrad Pozniak
a46922bfde
make avatar images in drawer rounded squares ( #1388 )
2019-07-16 19:26:41 +02:00
Konrad Pozniak
bcd5262314
fix Glide crash in MainActivity ( #1379 )
...
* fix Glide crash in MainActivity
* make emojiInitCallback final
2019-07-10 21:10:07 +02:00