Commit 94f0c616 authored by Viktor De Pasquale's avatar Viktor De Pasquale

Added ignoring emulators for env_fix dialog

parent 8a86b30f
package com.topjohnwu.magisk.redesign.home
import android.Manifest
import android.os.Build
import com.topjohnwu.magisk.BuildConfig
import com.topjohnwu.magisk.Config
import com.topjohnwu.magisk.Info
......@@ -158,7 +159,13 @@ class HomeViewModel(
)
// Don't bother checking env when magisk is not installed, loading or already has been shown
if (invalidStates.any { it == stateMagisk.value } || shownDialog) {
if (
invalidStates.any { it == stateMagisk.value } ||
shownDialog ||
// don't care for emulators either
Build.DEVICE.orEmpty().contains("generic") ||
Build.PRODUCT.orEmpty().contains("generic")
) {
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment