Commit Graph

352 Commits

Author SHA1 Message Date
topjohnwu c0be5383de Support enable/disable Zygisk 2021-09-15 02:49:54 -07:00
topjohnwu 8d59caf635 Cleanup unused code 2021-09-13 01:06:43 -07:00
topjohnwu acf25aa4d3 Remove DoH 2021-09-13 00:44:49 -07:00
topjohnwu 16de4674ec Move denylist fragment to settings 2021-09-13 00:33:36 -07:00
topjohnwu 65b0ea792e MagiskHide is no more 2021-09-12 12:40:34 -07:00
topjohnwu 649b49ff45 Don't hold resources in Settings objects 2021-04-18 04:14:43 -07:00
topjohnwu 1f0a35f073 Set minSdkVersion to 21 2021-04-09 20:01:32 -07:00
topjohnwu 68090943f4 Several changes
- Change error message strings
- Move non-root stub error to SplashActivity
- Skip shell init in non-root stub
2021-02-22 03:28:19 -08:00
vvb2060 860a05abf2 Simplify UpdateChannel 2021-02-22 03:08:51 -08:00
vvb2060 bba2ac8817 Add unsupport env check 2021-02-22 03:08:51 -08:00
topjohnwu 75584e2b19 App string resources overhaul 2021-02-11 02:34:27 -08:00
topjohnwu c609a01e55 Proper shortcut name 2021-01-24 08:00:17 -08:00
vvb2060 ec1af9dc1e Delete useless arrays 2020-12-09 00:17:58 -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
RikkaW fa3ef8a1c1 Significantly simplify MagiskDialog layout
The goal of original implementation, wrap view again and again, seems to be use the shadow and customizable round corners from MaterialCardView. But this can be done with use MaterialShapeDrawable which used in MaterialCardView directly. This will significantly simplify the layout and MagiskDialog class.
2020-11-19 23:21:36 -08:00
RikkaW c93ada03c7 Implement Edge-to-edge with newer APIs
The implementation adds a "Base" family styles, making creating themes across multiple API versions more clearer and easier.
2020-11-19 23:21:36 -08:00
Ilya Kushnir 4d9f58ee72 Update RU strings & tidying up EN 2020-11-13 03:03:35 -08:00
vvb2060 533cb8eb58 Tapjacking protection 2020-10-22 02:40:47 -07:00
vvb2060 468796c23d Add option to show OS apps 2020-10-17 05:57:43 -07:00
topjohnwu 9087207dc0 Minor changes 2020-10-17 04:14:12 -07:00
vvb2060 2760f37e6b Add userspace reboot 2020-10-17 03:54:51 -07:00
topjohnwu 2e4dc91b96 Better stub hiding experience 2020-10-17 03:40:43 -07:00
Rikka bc3fbe09f5 Update several colors in themes
* Change color for Mew theme

The original color looks like disabled color.

* Change color for Zapdos theme

The original colors have extremely poor readability. For yellow colors, it is difficult to balance readability and beauty, maybe remove it is a better choice?

* Change colors

- Use original colors for dark themes
- Adjust light colors

* Change colorError for dark themes
2020-09-27 04:34:38 -07:00
vvb2060 7ac55068db Catch ActivityNotFoundException 2020-09-27 04:33:46 -07:00
nikk f575155a41 Fix focus on main elements in Modern UI
Co-authored-by: John Wu <topjohnwu@gmail.com>
2020-09-21 03:27:29 -07:00
RikkaW fc76673802 Black splash screen background for dark theme 2020-09-21 03:15:59 -07:00
topjohnwu 2dbaf9595c Remove strokes from most cards 2020-09-17 02:27:43 -07:00
RikkaW d5a7a75d9d Set android:windowContentOverlay to null so that there will be not "shadow" on pre-21 2020-09-13 12:40:40 -07:00
topjohnwu 851b676077 Remove custom fonts 2020-09-13 06:51:17 -07:00
topjohnwu 765b51285a Add settings to disable DoH
Close #3130
2020-09-13 04:34:00 -07:00
topjohnwu 9a8a27dbb9 Do not access color attributes in background
Workaround with ImageView tints
2020-09-12 03:17:21 -07:00
topjohnwu 782adc9a9f Cleanup some styles 2020-08-29 21:42:05 -07:00
topjohnwu 7e133b0cf4 UI tweaks for pre API 21 2020-08-27 05:46:41 -07:00
topjohnwu b4e8860ee4 Only make navbar and status bar transparent on 21+
There is no easy way to handle insets pre 21, forget about it
2020-08-27 04:07:34 -07:00
topjohnwu ccde8b73a2 Cleanup install screen layout 2020-08-24 00:19:08 -07:00
topjohnwu 4b238a9cd0 Add feature to create launch shortcuts 2020-08-21 03:36:12 -07:00
topjohnwu ac2a9da4c4 Fix Markdown rendering
Close #3074
2020-08-14 02:00:06 -07:00
topjohnwu 6c8fe46590 Remove unused resources 2020-08-11 04:33:07 -07:00
topjohnwu 36a70e995f Remote -> Online 2020-08-11 03:36:41 -07:00
topjohnwu f5aa6a3cf8 Update module fragment
Update UI and logic for loading modules
2020-08-09 21:41:23 -07:00
topjohnwu c944277e78 Use switches with 2 way binding instead of custom ImageView 2020-08-09 14:50:16 -07:00
topjohnwu da2b00de59 Several home screen changes 2020-08-09 02:32:13 -07:00
topjohnwu 113eec59f9 Request storage rw for saving logs
Fix #2993
2020-07-17 01:27:52 -07:00
topjohnwu 45b5e89912 Remove canary debug channel
All canary builds will be debug only
2020-06-20 02:45:02 -07:00
topjohnwu cba26eedb5 Move several stuffs out of shared 2020-03-30 04:25:42 -07:00
Viktor De Pasquale 6907651756 Updated flash screen so it's a fragment
The FlashActivity has been removed and all of it's functionality has been transferred to the FlashFragment.
The FlashFragment needs to be however launched in a different way than the activity using the MainActivity's stub and so seemingly massive changes had to be made.

Notably the RemoteFileService didn't seem to be calling Service.startForeground(), which has been crashing the application due to the system requirements, so that's been fixed.
2020-03-26 03:42:52 -07:00
Viktor De Pasquale 922e36cfb0 Updated the width of bottom navigation 2020-03-26 03:42:52 -07:00
Viktor De Pasquale 88d917b662 Added permission check for installing/downloading modules 2020-03-04 23:50:50 -08:00
topjohnwu 915fd3020b Small string resource reorganization
Close #2454
2020-02-29 14:49:06 -08:00
Viktor De Pasquale 0492e63862 Added unified switches to install screen 2020-02-11 10:42:05 -08:00