Support help message when battery is unavailable(1/2)

- Present help preference when battery is unavailable

Bug: 179237551
Test: make SettingsRoboTests
Change-Id: If6e82210d831123cb1169d53a18d24cb2c576b10
This commit is contained in:
Wesley.CW Wang
2021-04-08 18:01:15 +08:00
parent b914ec91f1
commit 756028aadd
6 changed files with 95 additions and 10 deletions

View File

@@ -91,7 +91,7 @@ public class BatteryHeaderPreferenceController extends BasePreferenceController
if (com.android.settings.Utils.isBatteryPresent(mContext)) {
quickUpdateHeaderPreference();
} else {
//TODO(b/179237551): Make new progress bar widget support help message
mBatteryUsageProgressBarPref.setVisible(false);
}
}