Commit Graph

34 Commits

Author SHA1 Message Date
Konrad Pozniak d16e71b200 use CustomTabColorSchemeParams instead of deprecated methods (#2049) 2021-01-30 05:18:34 +03:00
Alibek Omarov ed16f1b2bc Use SpannableString instead of SpannableStringBuilder when it's possible 2020-10-11 00:17:51 +03:00
Alibek Omarov 86b57cd1ef CustomEmojiHelper: rewrite to Kotlin 2020-05-20 17:51:36 +03:00
Alibek Omarov 47d903480e LinkHelper: try to fix error if account url is null 2020-05-03 02:49:31 +03:00
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
2020-01-30 21:37:28 +01:00
Konrad Pozniak 99032100d4 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 8aa217c028 upgrade androidx.browser to 1.2.0 (#1595) 2019-12-20 20:08:02 +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 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 590cfbbcd2 fix mentions outside of content warnings not being clickable (#1405) 2019-07-25 12:16:19 +02:00
Konrad Pozniak 59a464e5ae fix crash caused by broken mention (#1360) 2019-07-02 10:55:02 +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
Konrad Pozniak 41268859b1 fix some lint warnings 2019-04-21 08:24:29 +02:00
Konrad Pozniak 0bf1685db4 remove CustomTabsHelper & ResourcesUtils (#1157) 2019-03-30 15:18:40 +01:00
Conny Duck f4bf446a90 Revert "Generalize url scheme parsing/highlighting (#1008)"
This reverts commit d54599a570.
2019-02-11 14:43:57 +01:00
Levi Bard d54599a570 Generalize url scheme parsing/highlighting (#1008)
* Add support for highlighting dat, ssb, ipfs url schemes. #847

* Generalize scheme parsing for url highlighting. #847

* Migrate LinkHelper to kotlin
2019-02-05 19:55:28 +01:00
Konrad Pozniak 0b60445256 Upgrade to AndroidX, move to MaterialComponents theme (#953)
* upgrade to AndroidX, upgrade libraries

* move to MaterialComponents theme

* make sure the compose button looks good everywhere

* fix tollbar title/button alignment on tablet

* move to new material color theming, consolidate colors and themes

* fix build, fix imports

* set error on TextInputLayout instead of EditText

* fix imports, TootButton when

* improve snackbar style

* fix task description color
2018-12-17 15:25:35 +01:00
Mélanie Chauvel (ariasuni) 95d4fc3428 Display mentions toot hidden (#954)
* WIP: still display mentions when toot content is hidden

* WIP: still display mentions when toot content is hidden (2)

* Still display mentions when toot content is hidden (3)

* Factorize code for setting content and spoiler on a toot

* Factorize condition
2018-12-16 10:30:40 +01:00
kyori19 d66858abe7 fix link's too large hitbox (#916)
* fix link's too large hitbox (tuskyapp#846)

* Use zero width space instead of normal space.

* Add comment.

* Remove unnecessary Html.fromHtml
2018-11-12 23:07:47 +01:00
Conny Duck 5ef50fa3cd fix links with uppercase letters in scheme not being opened
closes #801
2018-09-04 18:43:06 +02:00
Conny Duck 9133a74d37 cleanup code 2018-06-25 14:49:00 +02:00
Konrad Pozniak 8db482bb46 move bottom sheet from fragments to activities (#628)
* move bottom sheet from fragments to activities

* move BottomSheetLogic to dedicated abstract Activity

* change tests

* improve code
2018-05-06 22:05:54 +02:00
Ivan Kupalov 75a25f02ac Open links in new tabs (#603) 2018-04-26 22:52:45 +02:00
Levi Bard 51b94b876f View links to statuses inside Tusky (#568)
* View links to statuses inside Tusky

* Only attempt to open links that look like mastodon statuses

* Add support for pleroma statuses

* Move "smells like mastodon" url check to click handler

* Add bottom sheet to notify users of post query status

* Improve architecture for managing search status

* Push everything into SFragment

* Add external lookup for non-locally-resolved account links

* Clean up copypasta from LinkHelper.setClickableText

* Apply PR feedback

* Migrate bottom sheet wrappers to CoordinatorLayout
2018-04-25 20:04:55 +02:00
Konrad Pozniak 5de7b21007 convert entity classes to Kotlin data classes (#526)
* convert entity classes to Kotlin data classes

* more data classes, code style
2018-03-03 13:24:03 +01:00
Conny Duck 04b7c4a775 fix bug where sometimes a mention would be underlined 2018-01-29 22:11:32 +01:00
remi6397 487763b53e Theming improvements (#502)
* Split theme definitions into day and night

* Add support for Night Mode in code

* Add theme chooser in preferences

* Fix translations

* Adjust IDs

* Adjust preferences for custom themes

* UI tweaks for custom theme support

* Added code for custom theme support 🍅

* Fixed resource display in Kotlin 🍅

* Restored styles

* Updated strings

* Fixed getIdentifier() to fit into setTheme()

* Removed redundant resources

* Reset default theme to "Dusky"

* Fixed night mode handler to maintain compatibility

* Refactor functions to use helper methods

* Added license block

* Added preview to theme selector

* Added color identifier getter helper method

* Fixed reference in AccountMediaFragment

* Cleanup

* Fixed navbar foreground not changing color

* Fix fallback theme switch(){}

* Enable location-based daylight trigger

* Cleanup

* Modified theming strategy to reduce clutter in preferences

* Updated translations for latest version

* Removed "Default" theme flavor from settings

* Updated Polish translations 🇵🇱

* Modified TwilightManager handling code to support Android M's UiModeManager features and moved it to its own function

* Updated Polish translations 🇵🇱

* Cleanup; Fixed hardcoded string

* Added missing escape in string

* Removed permission request dialog.

As we now use native UiModeManager APIs that don't need special permission for Android 6.0 and above, we no longer need to bother user with Android M+ specific location permission request dialog.

* Increased readability of ThemeUtil class

* Refactored ThemeUtils.setAppNightMode method

* Cleanup
2018-01-20 13:39:01 +01:00
Konrad Pozniak 27b3606482 UI Improvements (#445)
UI Improvements
2017-11-30 20:12:09 +01:00
Conny Duck 39a6bc6fa5 change default of chrome custom tabs setting to false 2017-10-30 10:48:27 +01:00
Konrad Pozniak 39530cb960 Link previews for detail statuses (#424)
* implement link preview cards on detail statuses

* cleanup code
2017-10-27 13:20:17 +02:00
Vavassor 58c8f64287 Documents some utilities 2017-07-27 22:03:45 -04:00
Vavassor cfc7abd31a Changes mention and tag highlighting in the composer to use Mastodon's regex. Closes #145 Also, does some haphazard cleanup. 2017-07-01 20:32:35 -04:00
Vavassor 5f045ca5c3 Fixes a bug where mentioning users of the same username links them all to the same profile. Closes #312
Also, removes the title on the search page and fixes an intermittent crash on thread pages when elements load in a paritcular order.
2017-06-20 18:41:57 -04:00
Vavassor 7f31aff144 Reorganizes the whole codebase. 2017-05-04 18:55:35 -04:00