修复 app.viewFile等FileUriExposed异常
This commit is contained in:
@@ -61,7 +61,7 @@ public abstract class AutoJs {
|
||||
mContext = application.getApplicationContext();
|
||||
mApplication = application;
|
||||
mUiHandler = new UiHandler(mContext);
|
||||
mAppUtils = new AppUtils(mContext);
|
||||
mAppUtils = createAppUtils(mContext);
|
||||
mGlobalConsole = createGlobalConsole();
|
||||
mNotificationObserver = new AccessibilityNotificationObserver(mContext);
|
||||
mAccessibilityInfoProvider = new AccessibilityInfoProvider(mContext.getPackageManager());
|
||||
@@ -70,6 +70,10 @@ public abstract class AutoJs {
|
||||
init();
|
||||
}
|
||||
|
||||
protected AppUtils createAppUtils(Context context) {
|
||||
return new AppUtils(mContext);
|
||||
}
|
||||
|
||||
protected GlobalStardustConsole createGlobalConsole() {
|
||||
return new GlobalStardustConsole(mUiHandler);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user