Merge "Reset all TARE constants." into tm-dev am: 42156e7ba9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16989250 Change-Id: I7a4bae895aeff3ea80baa655e4fa549ee84b4394
This commit is contained in:
@@ -69,11 +69,14 @@ public class TareHomePage extends Activity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Reverts the TARE settings to the original default settings */
|
/** Reverts the TARE settings to the original default settings */
|
||||||
// TODO: Establish default TARE values and make this method revert all settings back to default.
|
|
||||||
public void revertSettings(View v) {
|
public void revertSettings(View v) {
|
||||||
Toast.makeText(this, R.string.tare_settings_reverted_toast, Toast.LENGTH_LONG).show();
|
Toast.makeText(this, R.string.tare_settings_reverted_toast, Toast.LENGTH_LONG).show();
|
||||||
Settings.Global.putString(getApplicationContext().getContentResolver(),
|
Settings.Global.putString(getApplicationContext().getContentResolver(),
|
||||||
Settings.Global.ENABLE_TARE, null);
|
Settings.Global.ENABLE_TARE, null);
|
||||||
|
Settings.Global.putString(getApplicationContext().getContentResolver(),
|
||||||
|
Settings.Global.TARE_ALARM_MANAGER_CONSTANTS, null);
|
||||||
|
Settings.Global.putString(getApplicationContext().getContentResolver(),
|
||||||
|
Settings.Global.TARE_JOB_SCHEDULER_CONSTANTS, null);
|
||||||
setEnabled(Settings.Global.DEFAULT_ENABLE_TARE == SETTING_VALUE_ON);
|
setEnabled(Settings.Global.DEFAULT_ENABLE_TARE == SETTING_VALUE_ON);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user