Alarm Manager policy TARE page implementation
An alarm manager policy page is needed in the TARE developer option settings to allow developers to both view and edit the current values of all the factors under the alarm manager policy. The page uses a dropdown so that the user can easily switch between the different policies. For the factors with subfactors, the user simply clicks on the factor and the subfactors will pop up under it. Bug: 191876714 Bug: 191876567 Test: Manual (open Settings > System > Developer Options > TARE > Alarm Manger and verify all factors are there) Change-Id: Ie036e26df80947d23041bedfd5b1385e48069b6b
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.android.settings.development.tare;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
@@ -28,7 +29,7 @@ import android.widget.Toast;
|
||||
|
||||
import com.android.settings.R;
|
||||
|
||||
/** Class for creating the TARE homepage in settings*/
|
||||
/** Class for creating the TARE homepage in settings */
|
||||
public class TareHomePage extends Activity {
|
||||
private Switch mOnSwitch;
|
||||
private Button mRevButton;
|
||||
@@ -57,9 +58,14 @@ public class TareHomePage extends Activity {
|
||||
});
|
||||
}
|
||||
|
||||
/** This method should revert the TARE settings to the original default settings */
|
||||
// TODO: Establish default TARE values and make this method revert all settings back to default
|
||||
/** 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) {
|
||||
Toast.makeText(this, R.string.tare_settings_reverted_toast, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
|
||||
/** Opens up the AlarmManager TARE policy page with its factors to view and edit */
|
||||
public void launchAlarmManagerPage(View v) {
|
||||
startActivity(new Intent(getApplicationContext(), DropdownActivity.class));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user