feat: don't show play protect warning in dev mode

This commit is contained in:
rushiiMachine 2025-05-18 16:08:15 -07:00
parent bd298c0858
commit 33f423ddd0
No known key found for this signature in database
GPG key ID: DCBE5952BB3B6420

View file

@ -54,7 +54,7 @@ class InstallStep(private val options: PatchOptions) : Step(), KoinComponent {
ProcessLifecycleOwner.get().lifecycle.withResumed {}
// Show [PlayProtectDialog] and wait until it gets dismissed
if (!context.isPackageInstalled(options.packageName) && context.isPlayProtectEnabled() == true) {
if (!prefs.devMode && !context.isPackageInstalled(options.packageName) && context.isPlayProtectEnabled() == true) {
container.log("Showing play protect warning dialog")
overlays.startComposableForResult { callback ->
PlayProtectDialog(onDismiss = { callback(Unit) })