Merge "Revert to Default Settings"
This commit is contained in:
committed by
Android (Google) Code Review
commit
3ce7245736
@@ -23,6 +23,7 @@ import static com.android.settings.development.tare.DropdownActivity.POLICY_JOB_
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.provider.Settings;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.CompoundButton;
|
||||
@@ -66,6 +67,8 @@ public class TareHomePage extends Activity {
|
||||
// TODO: Establish default TARE values and make this method revert all settings back to default.
|
||||
public void revertSettings(View v) {
|
||||
Toast.makeText(this, R.string.tare_settings_reverted_toast, Toast.LENGTH_LONG).show();
|
||||
Settings.Global.putString(getApplicationContext().getContentResolver(),
|
||||
Settings.Global.ENABLE_TARE, null);
|
||||
}
|
||||
|
||||
/** Opens up the AlarmManager TARE policy page with its factors to view and edit */
|
||||
|
Reference in New Issue
Block a user