|
|
@ -186,6 +186,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
|
|
|
|
|
|
|
private Button btnRepair;
|
|
|
|
private Button btnRepair;
|
|
|
|
private Button btnDaily;
|
|
|
|
private Button btnDaily;
|
|
|
|
|
|
|
|
private TextView tvLastDaily;
|
|
|
|
private SwitchCompat swAutostart;
|
|
|
|
private SwitchCompat swAutostart;
|
|
|
|
private SwitchCompat swEmergency;
|
|
|
|
private SwitchCompat swEmergency;
|
|
|
|
private SwitchCompat swWorkManager;
|
|
|
|
private SwitchCompat swWorkManager;
|
|
|
@ -429,6 +430,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
|
|
|
|
|
|
|
btnRepair = view.findViewById(R.id.btnRepair);
|
|
|
|
btnRepair = view.findViewById(R.id.btnRepair);
|
|
|
|
btnDaily = view.findViewById(R.id.btnDaily);
|
|
|
|
btnDaily = view.findViewById(R.id.btnDaily);
|
|
|
|
|
|
|
|
tvLastDaily = view.findViewById(R.id.tvLastDaily);
|
|
|
|
swAutostart = view.findViewById(R.id.swAutostart);
|
|
|
|
swAutostart = view.findViewById(R.id.swAutostart);
|
|
|
|
swEmergency = view.findViewById(R.id.swEmergency);
|
|
|
|
swEmergency = view.findViewById(R.id.swEmergency);
|
|
|
|
swWorkManager = view.findViewById(R.id.swWorkManager);
|
|
|
|
swWorkManager = view.findViewById(R.id.swWorkManager);
|
|
|
@ -2132,6 +2134,11 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
|
|
|
|
|
|
|
setLastCleanup(prefs.getLong("last_cleanup", -1));
|
|
|
|
setLastCleanup(prefs.getLong("last_cleanup", -1));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (prefs.contains("last_daily"))
|
|
|
|
|
|
|
|
tvLastDaily.setText(new Date(prefs.getLong("last_daily", 0)).toString());
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
tvLastDaily.setText(("-"));
|
|
|
|
|
|
|
|
|
|
|
|
File external = Helper.getExternalFilesDir(getContext());
|
|
|
|
File external = Helper.getExternalFilesDir(getContext());
|
|
|
|
boolean emulated = (external != null && Environment.isExternalStorageEmulated(external));
|
|
|
|
boolean emulated = (external != null && Environment.isExternalStorageEmulated(external));
|
|
|
|
tvExternalStorageFolder.setText(
|
|
|
|
tvExternalStorageFolder.setText(
|
|
|
@ -2214,6 +2221,9 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
if ("last_cleanup".equals(key))
|
|
|
|
if ("last_cleanup".equals(key))
|
|
|
|
setLastCleanup(prefs.getLong(key, -1));
|
|
|
|
setLastCleanup(prefs.getLong(key, -1));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ("last_daily".equals(key))
|
|
|
|
|
|
|
|
tvLastDaily.setText(new Date(prefs.getLong(key, 0)).toString());
|
|
|
|
|
|
|
|
|
|
|
|
if ("lt_uri".equals(key) ||
|
|
|
|
if ("lt_uri".equals(key) ||
|
|
|
|
"lt_user".equals(key) ||
|
|
|
|
"lt_user".equals(key) ||
|
|
|
|
"lt_key".equals(key) ||
|
|
|
|
"lt_key".equals(key) ||
|
|
|
|