diff --git a/AndroidManifest.xml b/AndroidManifest.xml index d2a9c75fc69..a34713dce6c 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -178,6 +178,7 @@ diff --git a/res/values/strings.xml b/res/values/strings.xml index 41de5539a3b..d6f22fbb102 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -997,12 +997,16 @@ When you set up Face Unlock and Fingerprint Unlock, your phone will ask for your fingerprint when you wear a mask or are in a dark area Ways to unlock - - Use face and fingerprint for - Unlocking your phone + Unlock your phone - Authentication in apps + Verify it\u2019s you in apps + + Using face + + Using fingerprint + + Using face or fingerprint Hand the phone back to your parent @@ -1242,25 +1246,6 @@ Yes, remove - - Face \u0026 fingerprint unlock - - Tap to set up - - Face only - - Fingerprint only - - Face and fingerprint - - When you set up face and fingerprint unlock, your phone will ask for your fingerprint when you wear a mask or are in a dark area - - Ways to unlock - - Use face or fingerprint for - - Authentication in apps - Encryption diff --git a/res/xml/security_settings_combined_biometric.xml b/res/xml/security_settings_combined_biometric.xml index a394b7b4688..ef3a3fd1ff2 100644 --- a/res/xml/security_settings_combined_biometric.xml +++ b/res/xml/security_settings_combined_biometric.xml @@ -43,8 +43,7 @@ + android:key="biometric_ways_to_use"> + android:key="biometric_ways_to_use"> loader, BatteryInfo batteryInfo) { - if (batteryInfo == null) { - Log.w(TAG, "mBatteryInfoLoaderCallbacks: batteryInfo = null"); - return; - } mBatteryHeaderPreferenceController.updateHeaderPreference(batteryInfo); mBatteryHeaderPreferenceController.updateHeaderByBatteryTips( mBatteryTipPreferenceController.getCurrentBatteryTip(), batteryInfo); @@ -131,10 +126,6 @@ public class PowerUsageSummary extends PowerUsageBase implements @Override public void onLoadFinished(Loader> loader, List data) { - if (mBatteryInfo == null) { - Log.w(TAG, "mBatteryTipsCallbacks: batteryInfo = null"); - return; - } mBatteryTipPreferenceController.updateBatteryTips(data); mBatteryHeaderPreferenceController.updateHeaderByBatteryTips( mBatteryTipPreferenceController.getCurrentBatteryTip(), mBatteryInfo); diff --git a/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java b/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java index b6806e8573a..4b9858753da 100644 --- a/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java +++ b/src/com/android/settings/fuelgauge/batterytip/BatteryTipLoader.java @@ -18,7 +18,6 @@ package com.android.settings.fuelgauge.batterytip; import android.content.Context; import android.os.BatteryUsageStats; -import android.util.Log; import androidx.annotation.VisibleForTesting; @@ -68,16 +67,11 @@ public class BatteryTipLoader extends AsyncLoaderCompat> { final BatteryInfo batteryInfo = mBatteryUtils.getBatteryInfo(TAG); final Context context = getContext(); - tips.add(new EarlyWarningDetector(policy, context).detect()); - if (batteryInfo == null) { - Log.w(TAG, "loadInBackground() batteryInfo = null"); - return tips; - } - tips.add(new LowBatteryDetector(context, policy, batteryInfo).detect()); tips.add(new HighUsageDetector(context, policy, mBatteryUsageStats, batteryInfo).detect()); tips.add(new SmartBatteryDetector( context, policy, batteryInfo, context.getContentResolver()).detect()); + tips.add(new EarlyWarningDetector(policy, context).detect()); tips.add(new BatteryDefenderDetector(batteryInfo).detect()); Collections.sort(tips); return tips;