Commit Graph

59 Commits

Author SHA1 Message Date
topjohnwu fc6b02f607 Move denylist fragment to its own section 2021-09-12 00:39:24 -07:00
topjohnwu 743c7c9326 App code reorganization 2021-09-01 01:17:27 -07:00
topjohnwu 067248da75 Cleanup RvItems 2021-09-01 01:17:27 -07:00
topjohnwu 038f73a5f7 Remove Koin
Non static DI is bad
2021-04-18 04:46:11 -07:00
topjohnwu 1418bc454d Don't hold resources in ViewModels 2021-04-18 02:12:53 -07:00
topjohnwu 706d53065b Rename TransitiveText 2021-04-09 01:32:37 -07:00
topjohnwu 0f95a7babe Do not hold resources in SuperuserViewModel 2021-04-09 01:00:26 -07:00
topjohnwu bd935b0553 Cleanup fragment navigations 2021-03-16 04:58:02 -07:00
vvb2060 d05408c89f Delete outdated policies when refresh 2021-02-25 20:08:42 -08:00
RikkaW 0df891b336 Handle window insets with a new way
For example, switching pages in home should only have scale and alpha animations, but a "translate y" animation shows. This is because Data Binding is triggered later (like "in the next frame"), causing the animation runs before view attribute changes.

This commit introduces WindowInsetsHelper class and use it to handle all window insets. With the help of LayoutInflaterFactory from the previous commit, we can control insets behavior by adding our attributes to the XML and anything is done by WindowInsetsHelper class.

As changes are highly coupling, this commit also contains new ItemDecoration for lists, replacing the random combination of padding and empty drawable. And "fixEdgeEffect" extension for RecyclerView, making edge effects respect padding.
2020-11-19 23:24:39 -08:00
vvb2060 a6950b8aca Add failed state 2020-09-23 20:57:19 -07:00
topjohnwu 9908dfd79a Hide MagiskHide entry when disabled 2020-09-20 14:30:57 -07:00
topjohnwu 8a338de696 Hide MagiskHide pre Kitkat 2020-09-13 03:55:12 -07:00
topjohnwu 2eb001876a Code cleanup 2020-09-11 03:17:43 -07:00
topjohnwu b510dc51ac Fix su request auto response 2020-09-11 03:09:01 -07:00
topjohnwu 34450cdddd More refactoring
Cleanups, move classes to sane locations, etc.
2020-08-19 02:05:23 -07:00
topjohnwu 846bbb4da1 Reorganize app source code 2020-08-18 06:31:15 -07:00
topjohnwu c7e30ac63e Update superuser list 2020-08-10 02:33:44 -07:00
topjohnwu da2b00de59 Several home screen changes 2020-08-09 02:32:13 -07:00
topjohnwu ec2d7d77eb Reduce usage of ObservableField 2020-07-15 02:52:15 -07:00
topjohnwu b41b2283f4 Rename package 2020-07-11 05:36:31 -07:00
topjohnwu a97d278bcd Remove RxBus 2020-07-09 05:13:24 -07:00
topjohnwu 8647ba4729 Remove more RxJava 2020-07-09 04:49:14 -07:00
topjohnwu f191db2fe0 Allow ViewModel to opt-out RxJava
Transition period
2020-07-08 01:50:28 -07:00
topjohnwu 9371515ecc Disable animations in superuser fragment 2020-03-27 00:53:38 -07:00
Viktor De Pasquale 1b8813228b Updated the app to use navigation components instead of custom solution
Welcome to mid 2018.
2020-03-26 03:42:52 -07:00
Viktor De Pasquale edff094626 Added log as primary fragment 2020-03-26 03:42:52 -07:00
Viktor De Pasquale e9fc40d285 Removed grid scale gestures and reverted back to * simple list as a default
* disgusting (:
2020-02-11 10:42:05 -08:00
topjohnwu d0112f989c Cleanup classes 2020-01-29 01:49:59 +08:00
Viktor De Pasquale 7bf7bfb9c6 Updated Flash / SuRequest activities with app themes
CompatActivity/Fragment logic has been moved to respective BaseUI. Some deprecated and unused styles have been removed in favor or newer themes.
2020-01-29 01:12:21 +08:00
topjohnwu 2291be5d26 Merge string resources 2020-01-23 01:40:36 +08:00
topjohnwu 707d7b3342 Separate core components 2020-01-13 22:01:46 +08:00
topjohnwu 84f1e78660 Consolidate base viewmodel implementation 2020-01-13 03:56:03 +08:00
topjohnwu 3490ba0a56 Redesign is now the new norm 2020-01-13 00:43:09 +08:00
topjohnwu 9094cf7ce3 Replace old design with redesign (p2) 2020-01-12 16:07:30 +08:00
topjohnwu b29f0ca4d1 Support using BiometricPrompt 2019-11-14 05:42:39 -05:00
Viktor De Pasquale d8d72f92b3 Fixed policy toggle being impossible to cancel 2019-11-01 14:47:59 +01:00
topjohnwu 7693024c29 Replace general resources with platform 2019-10-26 19:23:57 -04:00
topjohnwu 6b317f918e Rename base class names 2019-09-28 03:50:11 -04:00
topjohnwu 08b528dc4f Reorganize classes
- Move base classes to its own package
- Move most logic out of MagiskActivity to MainActivity
2019-09-28 03:37:24 -04:00
topjohnwu fc886a5a47 Merge Teanity into sources 2019-09-28 01:56:16 -04:00
topjohnwu 48395ba860 Remove unused files 2019-08-08 00:29:27 -07:00
topjohnwu b16f696b0e Cleanups 2019-07-28 03:47:07 -07:00
topjohnwu d1ff7e0ffe Move extensions to its own package 2019-07-28 02:10:22 -07:00
Viktor De Pasquale 5dd677756f Fixed multiple fetch tasks running at once
Disposing wouldn't help since the shell doesn't appear to handle concurrency well
2019-06-21 00:36:37 -07:00
Viktor De Pasquale 7e5f2822ae Fix superuser fragment crashes
Fix superuser screen encountering inconsistencies when refreshing the data rapidly
2019-06-21 00:36:01 -07:00
Viktor De Pasquale 982a43fce1 Moved diff computation of policy list to the background thread 2019-06-16 16:50:08 -04:00
topjohnwu 3f3b1f5b1d Sort policy with app name 2019-06-07 01:24:54 -07:00
Viktor De Pasquale 2fe917ff82 Fixed updating values with sql 2019-05-12 19:42:05 +02:00
Viktor De Pasquale 0e6c205732 Fixed snackbar for changed su states being incorrect 2019-05-12 18:56:42 +02:00