Format battery java code
After this CL, we can follow Guideline:go/hc-mainline-dev#format-code to keep java format consistent. Test: manual Bug: 304439460 Change-Id: I5bb77f81b0bd9be618e34942eaaee8296bc42796
This commit is contained in:
@@ -27,8 +27,8 @@ import com.android.settings.utils.VoiceSettingsActivity;
|
||||
import com.android.settingslib.fuelgauge.BatterySaverUtils;
|
||||
|
||||
/**
|
||||
* Activity for modifying the {@link android.os.PowerManager} power save mode
|
||||
* setting using the Voice Interaction API.
|
||||
* Activity for modifying the {@link android.os.PowerManager} power save mode setting using the
|
||||
* Voice Interaction API.
|
||||
*/
|
||||
public class BatterySaverModeVoiceActivity extends VoiceSettingsActivity {
|
||||
private static final String TAG = "BatterySaverModeVoiceActivity";
|
||||
@@ -36,9 +36,11 @@ public class BatterySaverModeVoiceActivity extends VoiceSettingsActivity {
|
||||
@Override
|
||||
protected boolean onVoiceSettingInteraction(Intent intent) {
|
||||
if (intent.hasExtra(EXTRA_BATTERY_SAVER_MODE_ENABLED)) {
|
||||
if (BatterySaverUtils.setPowerSaveMode(this,
|
||||
if (BatterySaverUtils.setPowerSaveMode(
|
||||
this,
|
||||
intent.getBooleanExtra(EXTRA_BATTERY_SAVER_MODE_ENABLED, false),
|
||||
/*needFirstTimeWarning=*/ true, SAVER_ENABLED_VOICE)) {
|
||||
/* needFirstTimeWarning= */ true,
|
||||
SAVER_ENABLED_VOICE)) {
|
||||
notifySuccess(null);
|
||||
} else {
|
||||
Log.v(TAG, "Unable to set power mode");
|
||||
|
||||
Reference in New Issue
Block a user