fix(autojs): java.lang.SecurityException Invalid media projection

This commit is contained in:
hyb1996
2018-10-12 21:13:30 +08:00
parent aa7318bfbd
commit 44bc2e9a02
3 changed files with 14 additions and 5 deletions

View File

@@ -20,8 +20,6 @@ public class GlobalAppContext {
private static Handler sHandler;
public static void set(Application a) {
if (sApplicationContext != null)
throw new IllegalStateException();
sHandler = new Handler(Looper.getMainLooper());
sApplicationContext = a.getApplicationContext();
}