version:2.2.6

update:0918
fix:
add:
This commit is contained in:
2021-09-18 18:36:45 +08:00
parent 0c27e60b29
commit 35e2df454f
3 changed files with 10 additions and 0 deletions

View File

@@ -113,6 +113,7 @@ public class MainActivity extends BaseActivity implements MainContact.MainView,
JGYUtils.startServices(MainActivity.this);
Logutils.e(TAG, "initView: " + "start request");
mPresenter.getFirstConnect();
NetworkUtils.registerNetworkStatusChangedListener(this);
getDevicesInfo();
setStoreUpdateListener(bt_checkupdate);
}
@@ -464,6 +465,7 @@ public class MainActivity extends BaseActivity implements MainContact.MainView,
super.onDestroy();
mPresenter.detachView();
JGYUtils.startServices(MainActivity.this);
NetworkUtils.unregisterNetworkStatusChangedListener(this);
}
@Override

View File

@@ -94,6 +94,7 @@ import static android.app.ActivityManager.RECENT_IGNORE_UNAVAILABLE;
public class JGYUtils {
private static final String TAG = JGYUtils.class.getSimpleName();
@SuppressLint("StaticFieldLeak")
private static JGYUtils sInstance;
private Context mContext;
public static int MTKPlatform = 1;
@@ -1167,6 +1168,10 @@ public class JGYUtils {
//删除用户除了在应用市场的其他应用
public void deleteOtherApp() {
int locked = Settings.System.getInt(mContext.getContentResolver(), "qch_unlock_ipad", 0);
if (locked == 1) {
return;
}
Logutils.e(TAG, "deleteOtherApp: " + "start");
//获取后台应用白名单
String only_jgy_shortcut_list = Settings.System.getString(mContext.getContentResolver(), "only_jgy_shortcut_list");

View File

@@ -547,6 +547,9 @@ public class SysSettingUtils {
ApkUtils.hideSystemSettingAPP(context, "com.android.documentsui");
}
Logutils.e(TAG, "qch_app_filemanager" + state);
Settings.System.putInt(context.getContentResolver(), "qch_app_browser", state);
Logutils.e(TAG, "qch_app_browser" + state);
} catch (Exception e) {
Logutils.e(TAG, "setIcon: " + e.getMessage());
}