|
|
@ -50,15 +50,16 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
private SwitchCompat swExperiments;
|
|
|
|
private SwitchCompat swExperiments;
|
|
|
|
private TextView tvExperimentsHint;
|
|
|
|
private TextView tvExperimentsHint;
|
|
|
|
private SwitchCompat swCrashReports;
|
|
|
|
private SwitchCompat swCrashReports;
|
|
|
|
|
|
|
|
private TextView tvUuid;
|
|
|
|
private SwitchCompat swDebug;
|
|
|
|
private SwitchCompat swDebug;
|
|
|
|
private Button btnReset;
|
|
|
|
private Button btnReset;
|
|
|
|
private Button btnCleanup;
|
|
|
|
private Button btnCleanup;
|
|
|
|
|
|
|
|
private TextView tvLastCleanup;
|
|
|
|
|
|
|
|
|
|
|
|
private TextView tvProcessors;
|
|
|
|
private TextView tvProcessors;
|
|
|
|
private TextView tvMemoryClass;
|
|
|
|
private TextView tvMemoryClass;
|
|
|
|
private TextView tvStorageSpace;
|
|
|
|
private TextView tvStorageSpace;
|
|
|
|
private TextView tvLastCleanup;
|
|
|
|
private TextView tvFingerprint;
|
|
|
|
private TextView tvUuid;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Group grpDebug;
|
|
|
|
private Group grpDebug;
|
|
|
|
|
|
|
|
|
|
|
@ -88,15 +89,16 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
swExperiments = view.findViewById(R.id.swExperiments);
|
|
|
|
swExperiments = view.findViewById(R.id.swExperiments);
|
|
|
|
tvExperimentsHint = view.findViewById(R.id.tvExperimentsHint);
|
|
|
|
tvExperimentsHint = view.findViewById(R.id.tvExperimentsHint);
|
|
|
|
swCrashReports = view.findViewById(R.id.swCrashReports);
|
|
|
|
swCrashReports = view.findViewById(R.id.swCrashReports);
|
|
|
|
|
|
|
|
tvUuid = view.findViewById(R.id.tvUuid);
|
|
|
|
swDebug = view.findViewById(R.id.swDebug);
|
|
|
|
swDebug = view.findViewById(R.id.swDebug);
|
|
|
|
btnReset = view.findViewById(R.id.btnReset);
|
|
|
|
btnReset = view.findViewById(R.id.btnReset);
|
|
|
|
btnCleanup = view.findViewById(R.id.btnCleanup);
|
|
|
|
btnCleanup = view.findViewById(R.id.btnCleanup);
|
|
|
|
|
|
|
|
tvLastCleanup = view.findViewById(R.id.tvLastCleanup);
|
|
|
|
|
|
|
|
|
|
|
|
tvProcessors = view.findViewById(R.id.tvProcessors);
|
|
|
|
tvProcessors = view.findViewById(R.id.tvProcessors);
|
|
|
|
tvMemoryClass = view.findViewById(R.id.tvMemoryClass);
|
|
|
|
tvMemoryClass = view.findViewById(R.id.tvMemoryClass);
|
|
|
|
tvStorageSpace = view.findViewById(R.id.tvStorageSpace);
|
|
|
|
tvStorageSpace = view.findViewById(R.id.tvStorageSpace);
|
|
|
|
tvLastCleanup = view.findViewById(R.id.tvLastCleanup);
|
|
|
|
tvFingerprint = view.findViewById(R.id.tvFingerprint);
|
|
|
|
tvUuid = view.findViewById(R.id.tvUuid);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
grpDebug = view.findViewById(R.id.grpDebug);
|
|
|
|
grpDebug = view.findViewById(R.id.grpDebug);
|
|
|
|
|
|
|
|
|
|
|
@ -295,6 +297,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
|
|
|
|
|
|
|
tvStorageSpace.setText(getString(R.string.title_advanced_storage_space,
|
|
|
|
tvStorageSpace.setText(getString(R.string.title_advanced_storage_space,
|
|
|
|
Helper.humanReadableByteCount(Helper.getStorageSpace(), true)));
|
|
|
|
Helper.humanReadableByteCount(Helper.getStorageSpace(), true)));
|
|
|
|
|
|
|
|
tvFingerprint.setText(Helper.getFingerprint(getContext()));
|
|
|
|
|
|
|
|
|
|
|
|
grpDebug.setVisibility(swDebug.isChecked() || BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
|
|
|
|
grpDebug.setVisibility(swDebug.isChecked() || BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|