Commit Graph

515 Commits

Author SHA1 Message Date
topjohnwu cc79a96fa3 Update libsu 2022-05-03 01:25:26 -07:00
vvb2060 9a11412719 Fix superuser snackbar text 2022-04-02 04:26:21 -07:00
topjohnwu 31f88e0f05 Update UI for sharedUID support 2022-03-25 16:56:21 -07:00
topjohnwu 9f1740cc4f Add preliminary shared UID app support 2022-03-25 13:08:13 -07:00
topjohnwu e67d0678f9 Use viewModelScope instead of GlobalScope 2022-03-23 18:03:41 -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
topjohnwu 71e37345b4 Update libsu 2022-02-28 20:14:58 -08:00
vvb2060 8cc76b1d86 Fix restore dialog 2022-02-16 23:04:19 -08:00
vvb2060 77a275cbcd Show notification when stub is updated to full 2022-02-16 23:04:03 -08:00
topjohnwu 5d400fbe90 Check REQUEST_INSTALL_PACKAGES before actions 2022-02-14 02:15:50 -08:00
topjohnwu 256ff31d11 Show notification after app upgrade 2022-02-13 18:35:35 -08:00
topjohnwu 084e0a73dc Cleanup DownloadService 2022-02-03 03:50:52 -08:00
LoveSy 5a88984d34 Guard synchronizedList's iteration
It's needed to guard a synchronizedList when iterating it
2022-01-27 02:01:30 -08:00
LoveSy 18de60f68c Fix NPE of SuRequestViewModel
countdown timer may have not initialized when backpressed
2022-01-27 02:01:04 -08:00
LoveSy 1893359142 Fix crash when fragment is detached from activity 2022-01-27 01:54:24 -08:00
topjohnwu d742cfa48f Label Zygisk as beta 2022-01-25 01:41:51 -08:00
topjohnwu 95353ce9eb Fix language settings 2022-01-25 01:31:15 -08:00
topjohnwu 5c54a2c008 Update version check logic 2022-01-25 01:10:17 -08:00
topjohnwu 8eac6c0b48 Cleanup arch classes 2022-01-22 14:44:46 -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
vvb2060 a01a3404fe Ignore duplicate clicks on BottomNavigationView
Co-authored-by: RikkaW <rikka@shizuku.moe>
2022-01-21 02:12:41 -08:00
canyie 454e5dfc5d Show confirmation dialog before restore app 2022-01-21 01:35:11 -08:00
topjohnwu 47545b45b8 Clean up MagiskDialog 2022-01-21 00:50:02 -08:00
canyie 5f4cd50cc4 Properly prevent fix env dialog from constantly showing
ViewModel has been reconstructed when switching fragment so we lost previous state.
2022-01-20 03:38:28 -08:00
canyie b0fba6ce5b Optimize navigation back stack
Fix topjohnwu#4333

Co-authored-by: LoveSy <shana@zju.edu.cn>
2022-01-20 03:38:00 -08:00
vvb2060 dbf45da8ab Avoid constantly check env 2022-01-18 04:47:53 -08:00
topjohnwu 0ad0ef485c Bump min Magisk version to v21.0
Close #5220
2022-01-18 04:27:40 -08:00
topjohnwu 7dfe3e53d5 Optimize imports 2022-01-18 03:58:47 -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
vvb2060 11600fc116 Use libs instead of copy code 2022-01-18 02:02:41 -08:00
capntrips 053f4d481d disable virtualAB check for noSecondSlot 2022-01-18 00:35:38 -08:00
capntrips f466c27da9 disable pixel check for noSecondSlot 2022-01-18 00:35:38 -08:00
RikkaW bfe6bc3095 Fix bottom nav sometimes not hide correctly
Replace homemade animation with StateListAnimator
2022-01-18 00:24:16 -08:00
vvb2060 6635ea3e29 Allow offline hide manager 2022-01-18 00:20:49 -08:00
LoveSy 591788c0df Fix an NPE
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.text.Layout.getEllipsisCount(int)' on a null object reference
2022-01-17 22:55:44 -08:00
vvb2060 571b8986a4 Don't assume installed version matches app 2022-01-17 20:29:11 -08:00
topjohnwu 76ddfeb93a Allow modifying denylist without enforcement 2022-01-15 23:46:22 -08:00
topjohnwu a7af8b5722 Add DoH back
JSDelivr is no longer China friendly
2022-01-13 03:50:29 -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
LoveSy b37d7e0500 Use default icon when failed to get app icon
Fix #5051
2021-12-14 04:58:18 -08:00
topjohnwu ad47dba064 Rename magiskVersion* -> version* 2021-12-14 03:01:11 -08:00
LoveSy 41b701846f ensureEnv even if getRemote fails
Co-authored-by: vvb2060 <vvb2060@gmail.com>
2021-12-14 02:57:58 -08:00
vvb2060 b76a3614da Fix isolated process comparisons 2021-12-10 04:35:38 -08:00
RikkaW 28b5faab0c Visual changes 2021-11-14 03:58:35 -08:00