Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
94f0c616
Commit
94f0c616
authored
Nov 21, 2019
by
Viktor De Pasquale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ignoring emulators for env_fix dialog
parent
8a86b30f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
HomeViewModel.kt
.../java/com/topjohnwu/magisk/redesign/home/HomeViewModel.kt
+8
-1
No files found.
app/src/main/java/com/topjohnwu/magisk/redesign/home/HomeViewModel.kt
View file @
94f0c616
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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment