File tree 1 file changed +6
-1
lines changed
autojs/src/main/java/com/stardust/autojs/util
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 7
7
import android .os .Handler ;
8
8
import android .os .Looper ;
9
9
import android .provider .Settings ;
10
+
10
11
import androidx .annotation .RequiresApi ;
12
+
11
13
import android .text .TextUtils ;
12
14
import android .widget .Toast ;
13
15
@@ -79,7 +81,10 @@ public static void manageDrawOverlays(Context context) {
79
81
version = Integer .parseInt (matcher .group ());
80
82
}
81
83
if (RomUtil .isMiui () && version >= 10
82
- && Build .VERSION .SDK_INT >= Build .VERSION_CODES .M ) {
84
+ && Build .VERSION .SDK_INT >= Build .VERSION_CODES .M ) {
85
+ manageDrawOverlaysForAndroidM (context );
86
+ } else if (RomUtil .isEmui () && version >= 10
87
+ && Build .VERSION .SDK_INT >= Build .VERSION_CODES .M ) {
83
88
manageDrawOverlaysForAndroidM (context );
84
89
} else {
85
90
SettingsCompat .manageDrawOverlays (context );
You can’t perform that action at this time.
0 commit comments