将一个读写存储操作移至获取存储权限后
This commit is contained in:
@ -212,9 +212,6 @@ public class SplashScreenActivity extends BaseActivity {
|
||||
// 获取过滤包
|
||||
filterManager.getFilterFromServer(0);
|
||||
|
||||
// 检查是否存在旧版本光环助手包
|
||||
checkOldGhFile();
|
||||
|
||||
// 更新过滤表,获取自动刷新的cd,获取版本对应表
|
||||
String time = mSharedPreferences.getString("refresh_time", null);
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault());
|
||||
@ -254,6 +251,8 @@ public class SplashScreenActivity extends BaseActivity {
|
||||
private void checkAndRequestPermission() {
|
||||
if (EasyPermissions.hasPermissions(this, mPermissions)) {
|
||||
launch();
|
||||
// 检查是否有旧版本光环,有就删掉
|
||||
HaloApp.getInstance().getMainExecutor().execute(this::checkOldGhFile);
|
||||
} else {
|
||||
ActivityCompat.requestPermissions(this, mPermissions, REQUEST_PERMISSION_TAG);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user