Commit Graph

71 Commits

Author SHA1 Message Date
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
Konrad Pozniak 70ca42c8b7 New settings (#891)
* change drawer items

* rename SettingsActivity

* introduce AccountSettings activity

* improve account settings, move notification settings

* sync settings with server

* rename settings back to preferences

* add functionality for settings

* move mediaPreviewEnabled preference to AccountPreferences

* replace shared prefs with accountmanager

* move PreferencesFragment to support library

* split preferences fragment into smaller fragments,
merge AccountPreferencesActivity into PreferencesFragment

* adjust icon size, add icons to general preferences

* change mediaPreviewEnabled and alwaysShowSensitiveMedia pref position

* add database migration

* remove pullNotificationCheckInterval option

* fix  preference in TimelineFragment

* Update Chinese translations. (#915)

* Update zh-CN translations.

* Update zh-SG translations.

* Update zh-TW translations.

* Update zh-MO translations.

* Update zh-HK translations.

* Fix errors in zh-CN translations.

* Fix errors in zh-SG translations.

* Fix errors in zh-TW translations.

* Fix errors in zh-MO translations.

* Fix errors in zh-HK translations.
2018-11-12 21:09:39 +01:00
Levi Bard 1deaaa1144 Refactor media views (#866)
* Migrate ImagePagerAdapter to kotlin

* Migrate ViewMediaFragment to kotlin

* Make images and videos share the same activity/pager

* Show descriptions above videos

* Cleanup

* Address code review feedback

* Migrate media fragments to constraint layout
2018-10-15 19:56:11 +02:00
Levi Bard 66b94e5397 Enable sharing media directly from Tusky (#852)
* Extract duplicated code into BaseActivity

* Migrate MediaUtils to kotlin

* Migrate ViewVideoActivity to kotlin

* Migrate ViewMediaActivity to kotlin

* Initial media sharing functionality

* Address code review feedback

* Make share icon match

* Address code review feedback
2018-10-01 11:50:17 +02:00
Conny Duck 3e08d439e9 fix the activity transitions (again 🙄) 2018-08-07 23:08:53 +02:00
Conny Duck 97c590c6d9 improve activity slide in/out handling 2018-07-31 21:25:25 +02:00
qwazix 3b09db6cb4 Add black theme (#726)
* Add black theme

On amoled screens a completely black theme helps save battery,
besides looking awesome!

* Fix first set of merge request issues except the dialog.

* Black theme inherits from dark and only the different values
  are declared
* Make nav bar translucent (for some reason content does not
  go behind it in main activity. Need to investigate)
* Remove nav bar line
* Fix toolbar color

* Fix dialog issue with black theme.

Revert translucent navigation.

* Translations updated, as well as possible from online sources.

* Make login screen respect black theme
2018-07-30 15:31:35 +02:00
Ivan Kupalov 54d00f0ada Add smaller and larger font options (fix #657) (#660)
* Add smaller and larger font options

* Fix test sizes, comment out translations
2018-06-07 22:19:39 +02:00
Konrad Pozniak d33345dd5c 1.8 fixes (#637)
* fix lint warnings

* upgrade dependencies

* auto cancel notifications

* improve dependency injection

* fix tests

* remove old comment from BaseActivity

* fix missing injectors
2018-05-08 19:15:10 +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
remi6397 90335f4b20 Notification tweaks: Grouping and Quick Reply button (#587)
* Added notification grouping and Quick Reply button

* Legal stuff

* Coding style

* Check whether account still exists when sending a quick reply

* Add "compose" button

* Polish translation

* Improve strings

* Code style

* Cancel notification when user hits "compose" button

* Notification counter

* Make sure to open ComposeActivity for notification recipient account

* Add ability to request account switch when starting an activity
2018-05-06 11:07:10 +02:00
Konrad Pozniak 3a873df06f Dependency injection improvement (#596)
* inject MastodonApi into LoginActivity

* inject AccountManager into MainActivity

* inject AccountManager into SplashActivity, convert to Kotlin

* inject AccountManager into AccountActivity

* inject AccountManager into LoginActivity

* inject AccountManager into NotificationsFragment and NotificationClearBroadcastReceiver, fix MainActivity

* ooops

* use same OkHttpClient for Retrofit & Picasso

* fix ordering of okhttp interceptors

* remove dependencies on TuskyApplication

* bugfix
2018-04-22 17:20:01 +02:00
Ivan Kupalov f43ef319d0 Add Dagger (#554)
* Add Dagger DI

* Preemptively fix tests

* Add missing licenses

* DI fixes

* ci fixes
2018-03-27 19:47:00 +02:00
Ivan Kupalov 5d954a8eab Add ComposeActivity tests. Add ServiceLocator (#542) 2018-03-09 22:02:32 +01:00
Conny Duck cde610b27d update dependencies, use new scheduleAsync of job library 2018-03-03 13:54:58 +01:00
Konrad Pozniak 167c460c08 notification improvements (#522)
* correctly filter notifications on Api >= 26, other fixes and refactoring

* use correct areNotificationsEnabled method in MainActivity

* change notification led color
2018-02-12 22:03:08 +01:00
Conny Duck 94f018b578 fixes a crash when trying to share via Tusky while not logged in 2018-02-05 11:27:32 +01:00
Conny Duck 11641eba79 remove unused resources 2018-02-03 23:43:06 +01:00
Conny Duck e5b33eb826 simplify theme handling 2018-02-03 23:26:53 +01:00
Konrad Pozniak 40cda2ced3 Multi account feature (#490)
* basic implementation

* improve LoginActivity

* darken drawer background image

* add current avatar in ComposeActivity

* add account name to logout dialog

* multi account support for notifications

* multi account support for notifications

* bugfixes & cleanup

* fix bug where somethings notifications would open with the wrong user

* correctly set active account in SFragment

* small improvements
2018-02-03 22:45:14 +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
Sergio López 0971fd452a implement support for HTTP proxy (#489)
This change allows the user to manually enter an unauthenticated proxy
configuration to be used for all API connections. This is mainly
intended for using Tusky with Tor (via Orbot or a local proxy).
2017-12-26 21:45:08 +01:00
Conny Duck ffeaae82c3 make medium the default font size on startup 2017-12-01 22:43:48 +01:00
Conny Duck be7762988f change handling of font size, introduce font size setting 2017-12-01 21:52:10 +01:00
Ivan Kupalov 287e6aaf95 Cancel notifications on opening notifications tab (#450) 2017-11-13 19:05:23 +01:00
Conny Duck 2c95080428 fix some lint warnings, remove unused code 2017-11-07 15:31:44 +01:00
Ivan Kupalov 06af962610 Use Android-Job to pull notifications. Closes #401. (#431) 2017-11-01 21:02:44 +01:00
Ivan Kupalov 387b37e0a8 Add media upload progress. Closes #412 (#426) 2017-10-29 22:18:45 +01:00
Conny Duck 170694b6ea remove Tusky API (was needed for push notifications) 2017-10-20 09:06:50 +02:00
Conny Duck 09e2746c41 remove old emoji shortcodes 2017-10-19 15:54:08 +02:00
Ivan Kupalov 65b7ce1909 Load custom emoji in statuses (#400) 2017-10-19 15:25:04 +02:00
Vavassor 1d45505caa Reverts notifications from MQTT prototype to pull notifications. 2017-07-08 20:59:48 -04:00
Vavassor dacfbb3455 Minor writing style changes. 2017-06-22 14:01:25 -04:00
Vavassor fb7bf66e22 Fixes a mistake made while merging #294. 2017-05-30 19:35:04 -04:00
Konrad Pozniak a6abe569f9 Merge branch 'master' into log-improvement 2017-05-25 19:17:20 +02:00
Vavassor dfe9cae90b pretty much finishes the prototype 2017-05-23 19:48:54 -04:00
Conny Duck 4a402cbe54 remove unnecessary Log utility class, replace Exception.printStackTrace with logging 2017-05-23 21:34:31 +02:00
Vavassor efaf0f50b5 Adds TLS to the push notification client (keystore_tusky_api is omitted). 2017-05-22 02:05:37 -04:00
Vavassor 5487e8ce7c First notification received successfully from the wryk/tusky-api prototype! 2017-05-21 22:21:23 -04:00
Vavassor 623af5fd9b Integrates with wryk/tusky-api, but only partially working.
Registers to the web-service fine but loses connection when subscribing with the broker.
2017-05-20 02:39:29 -04:00
Vavassor 3744bb1a60 Setup client-side for integration with the wryk/tusky-api prototype. 2017-05-19 21:28:12 -04:00
Vavassor 6208b848b7 Adds notification clearing and makes the client a little more stable. 2017-05-19 20:00:57 -04:00
Vavassor 54327f6e2b Removes the product flavor split. 2017-05-18 18:10:46 -04:00
Vavassor e0db0cfee5 Initial client working for MQTT push notifications. 2017-05-16 22:19:34 -04:00
Vavassor bf8d7384db Moves out-of-place Firebase InstanceId call to the google build flavor. Closes #274 2017-05-07 16:14:28 -04:00
Vavassor 7f31aff144 Reorganizes the whole codebase. 2017-05-04 18:55:35 -04:00
Vavassor a4b51430b4 Organizes libraries and removes a flavor-specific import (possibly unnecessary?). 2017-04-28 16:41:44 -04:00
Vavassor fe05d7de7a Raises the check interval to a more reasonable level. 2017-04-27 23:33:43 -04:00
Vavassor f67de9037d Moves Firebase notifications to a "google" build flavor and adds an "fdroid" flavor that uses polling for notifications.
Also, adds a few missing license notices.
2017-04-27 23:29:42 -04:00
Vavassor 1e6df9c56c Emojione shortcodes now converted to unicode in display names. closes #82, closes #129 2017-04-25 18:31:27 -04:00