Commit Graph

398 Commits

Author SHA1 Message Date
topjohnwu 6305159c5e Remove usage of BindingCollectionAdapter (part 1) 2022-06-02 20:55:19 -07:00
topjohnwu 2ed092c9db Update contributors in app 2022-06-02 06:08:47 -07:00
RikkaW 4cc5e9f986 Let module remove button support disable state 2022-06-01 09:04:47 -07:00
南宫雪珊 580c993c0b Display module status 2022-05-29 01:40:20 -07:00
topjohnwu 4eb9240806 Handle Activty recreation on content result
Credits to @canyie for the initial PR and finding the bug
Close #5791, fix #5789
2022-05-08 14:29:59 -07:00
topjohnwu 31f88e0f05 Update UI for sharedUID support 2022-03-25 16:56:21 -07:00
canyie 24505cd111 Prevent destroyed activities from being reused
The adapter will cache a LayoutInflater which refers the current activity, and the ViewModel object will keep alive until activity finished. After activity recreates (e.g. split-screen), it will use the cached LayoutInflater which refers a destroyed activity and crashes. This also is a memory-leak, according to Google's official document, ViewModel shouldn't refer activity. See https://developer.android.com/topic/libraries/architecture/viewmodel

Fix topjohnwu#5413
2022-03-07 01:54:02 -08:00
vvb2060 bf8b74e996 Module json add changelog 2022-01-22 14:44:37 -08:00
topjohnwu 5313a46aa2 Overhaul SettingsItem
Close #5021
2022-01-22 05:25:36 -08:00
topjohnwu 761a8dde65 Slightly change update UI logic 2022-01-21 05:37:47 -08:00
topjohnwu a73acfb9c2 Show unloaded Zygisk modules in UI 2022-01-21 05:37:47 -08:00
topjohnwu 47545b45b8 Clean up MagiskDialog 2022-01-21 00:50:02 -08:00
topjohnwu abfd3c3e5d Remove unused resources 2022-01-20 03:32:08 -08:00
vvb2060 bc0c1980db Support modules update 2022-01-18 02:02:41 -08:00
vvb2060 2997258fd0 Cleanup code 2022-01-18 02:02:41 -08:00
RikkaW bfe6bc3095 Fix bottom nav sometimes not hide correctly
Replace homemade animation with StateListAnimator
2022-01-18 00:24:16 -08:00
topjohnwu ba6e6cc15a Update vbmeta option hiding criteria
Hide when Samsung, A/B, or vbmeta partition exists
2022-01-12 02:29:34 -08:00
vvb2060 fd7bf2bc3a Support PATCHVBMETAFLAG env variable 2022-01-12 02:29:34 -08:00
RikkaW 1df2a04713 Find suitable anchor view for SnackBar
This will fix the SnackBar position if BottomNav or FAB is visible.

Fix #5163
Fix #5135
2022-01-10 23:10:42 -08:00
RikkaW 28b5faab0c Visual changes 2021-11-14 03:58:35 -08:00
topjohnwu ddd153c00d Show module suspend notice
Close #4862
2021-11-09 23:59:37 -08:00
topjohnwu 6723d20616 Cleanup AppProcessInfo 2021-11-04 20:09:19 -07:00
vvb2060 9126cf0c73 Rewrite deny list UI 2021-11-04 20:09:19 -07:00
topjohnwu db590091b3 Propagate Zygisk state to Magisk app 2021-09-18 02:38:53 -07:00
topjohnwu 470fc97d1f Remove SafetyNet check 2021-09-13 01:41:31 -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 fc6b02f607 Move denylist fragment to its own section 2021-09-12 00:39:24 -07:00
RikkaW 383192784d Use standard BottomNav & Remove hide on scroll for AppBar and BottomNav 2021-09-03 10:22:46 -07:00
topjohnwu f5c982355a Remove online section in modules fragment 2021-09-01 01:17:27 -07:00
vvb2060 350144df29 Do not allow remove the module to be updated 2021-08-29 11:35:46 -07:00
vvb2060 fb93af665d Remove obsolete SDK_INT check 2021-04-23 16:56:23 -07:00
topjohnwu 1418bc454d Don't hold resources in ViewModels 2021-04-18 02:12:53 -07:00
vvb2060 d11358671e Fix isolated process display 2021-03-24 04:43:45 -07:00
topjohnwu ccb55205e6 Fix pre 21 support 2021-02-20 03:38:39 -08:00
topjohnwu 236990f4a3 Fix stub app crashing 2021-02-14 13:37:13 -08:00
topjohnwu f88e812b63 Move behavior to XML 2021-02-13 15:26:32 -08:00
topjohnwu 63590d379c Update hide icon strategy 2021-02-11 22:38:41 -08:00
topjohnwu 5f63e88984 Hide icons when things don't fit 2021-02-11 05:08:40 -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
topjohnwu 657056e636 Cache changelog files 2021-01-24 06:55:43 -08:00
topjohnwu 658d74e026 Update home fragment 2021-01-24 00:02:49 -08:00
topjohnwu ec8fffe61c Merge Magisk install zip into Magisk Manager
Distribute Magisk directly with Magisk Manager APK. The APK will
contain all required binaries and scripts for installation and
uninstallation. App versions will now align with Magisk releases.

Extra effort is spent to make the APK itself also a flashable zip that
can be used in custom recoveries, so those still prefer to install
Magisk with recoveries will not be affected with this change.

As a bonus, this makes the whole installation and uninstallation
process 100% offline. The existing Magisk Manager was not really
functional without an Internet connection, as the installation process
was highly tied to zips hosted on the server.

An additional bonus: since all binaries are now shipped as "native
libraries" of the APK, we can finally bump the target SDK version
higher than 28. The target SDK version was stuck at 28 for a long time
because newer SELinux restricts running executables from internal
storage. More details can be found here: https://github.com/termux/termux-app/issues/1072
The target SDK bump will be addressed in a future commit.

Co-authored with @vvb2060
2021-01-22 02:29:54 -08:00
topjohnwu 9100186dce Make emulator direct install env fix 2021-01-18 13:32:10 -08:00
Rikka 95a5b57265 Remove "Flashing" overlay
Fix #3579, fix #3250
2021-01-15 21:28:59 -08:00
topjohnwu 8e61080a4a Preparation for hiding isolated processes 2020-12-30 15:55:53 -08:00
RikkaW 4dbf7eb04b Fix spacing in module filter list 2020-12-06 23:49:23 -08:00
RikkaW 3b5c9abf7a Remove filterTouchesWhenObscured in Magisk dialog
Fix #3363
2020-11-19 23:32:23 -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