Merge "Update battery settings page loading text" into 24D1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
47ce042cf3
@@ -59,9 +59,8 @@ public class BatteryHeaderPreferenceController extends BasePreferenceController
|
||||
public void displayPreference(PreferenceScreen screen) {
|
||||
super.displayPreference(screen);
|
||||
mBatteryUsageProgressBarPref = screen.findPreference(getPreferenceKey());
|
||||
// Set up loading text first to prevent layout flaky before info loaded.
|
||||
mBatteryUsageProgressBarPref.setBottomSummary(
|
||||
mContext.getString(R.string.settings_license_activity_loading));
|
||||
// Set up empty space text first to prevent layout flaky before info loaded.
|
||||
mBatteryUsageProgressBarPref.setBottomSummary(" ");
|
||||
|
||||
if (com.android.settings.Utils.isBatteryPresent(mContext)) {
|
||||
quickUpdateHeaderPreference();
|
||||
|
||||
Reference in New Issue
Block a user