Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Temporarily use DEFAULT if SHIZUKU permissions are not granted #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Ushie
Copy link

@Ushie Ushie commented Jul 6, 2024

Closes #13

@Ushie Ushie marked this pull request as draft July 6, 2024 23:11
@Ushie Ushie force-pushed the feat/temporary-install-method branch from fa015d5 to 5fcfb5c Compare July 10, 2024 22:42
@Ushie Ushie marked this pull request as ready for review July 10, 2024 22:43
@Ushie Ushie changed the title feat(Installer): Temporarily use DEFAULT if SHIZUKU permissions are not granted feat: Temporarily use DEFAULT if SHIZUKU permissions are not granted Jul 11, 2024
@@ -129,7 +130,14 @@ class HomeViewModel(
downloadManager.downloadUpdate(update)
isUpdating = false

val installer: Installer = when (prefs.installMethod) {
val installMethod = if (prefs.installMethod == InstallMethod.SHIZUKU && !ShizukuPermissions.waitShizukuPermissions()) {
// Temporarily use DEFAULT if SHIZUKU permissions are not granted
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could there be some kind of toast saying the permissions weren't granted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't reset installation method away from Shizuku on app launch
2 participants