Update the incompatible charging banner tip icon
Update the incompatible banner tip icon based on the UX update: https://screenshot.googleplex.com/8ApTNJnsxRRufjQ Fix: 246960554 Test: make test RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.fuelgauge Change-Id: I060554c17b3825b38004fb643c0a0cdf5fdbed4d
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
|
||||
package com.android.settings.fuelgauge;
|
||||
|
||||
import android.content.ContentResolver;
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.provider.Settings;
|
||||
@@ -25,8 +25,6 @@ import android.util.Log;
|
||||
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.fuelgauge.BatteryOptimizeHistoricalLogEntry;
|
||||
import com.android.settings.fuelgauge.batterysaver.BatterySaverScheduleRadioButtonsController;
|
||||
import com.android.settingslib.fuelgauge.BatterySaverUtils;
|
||||
|
||||
@@ -41,6 +39,7 @@ public final class BatterySettingsMigrateChecker extends BroadcastReceiver {
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
Log.d(TAG, "onReceive: " + intent + " owner: " + BatteryBackupHelper.isOwner());
|
||||
if (intent != null
|
||||
&& Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())
|
||||
&& BatteryBackupHelper.isOwner()) {
|
||||
|
@@ -52,7 +52,7 @@ public final class IncompatibleChargerTip extends BatteryTip {
|
||||
|
||||
@Override
|
||||
public int getIconId() {
|
||||
return R.drawable.ic_battery_alert_theme;
|
||||
return R.drawable.ic_battery_charger;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user