Loading packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java +10 −2 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.animation.LayoutTransition; import android.animation.ObjectAnimator; import android.animation.PropertyValuesHolder; import android.annotation.ColorInt; import android.annotation.StyleRes; import android.app.PendingIntent; import android.content.Context; import android.graphics.Color; Loading Loading @@ -444,9 +445,11 @@ public class KeyguardSliceView extends LinearLayout implements View.OnClickListe static class KeyguardSliceButton extends Button implements ConfigurationController.ConfigurationListener { @StyleRes private static int sStyleId = R.style.TextAppearance_Keyguard_Secondary; public KeyguardSliceButton(Context context) { super(context, null /* attrs */, 0 /* styleAttr */, com.android.keyguard.R.style.TextAppearance_Keyguard_Secondary); super(context, null /* attrs */, 0 /* styleAttr */, sStyleId); onDensityOrFontScaleChanged(); setEllipsize(TruncateAt.END); } Loading @@ -468,6 +471,11 @@ public class KeyguardSliceView extends LinearLayout implements View.OnClickListe updatePadding(); } @Override public void onOverlayChanged() { setTextAppearance(sStyleId); } @Override public void setText(CharSequence text, BufferType type) { super.setText(text, type); Loading packages/SystemUI/src/com/android/systemui/BatteryMeterView.java +11 −0 Original line number Diff line number Diff line Loading @@ -325,6 +325,17 @@ public class BatteryMeterView extends LinearLayout implements .inflate(R.layout.battery_percentage_view, null); } /** * Updates percent view by removing old one and reinflating if necessary */ public void updatePercentView() { if (mBatteryPercentView != null) { removeView(mBatteryPercentView); mBatteryPercentView = null; } updateShowPercent(); } private void updatePercentText() { if (mBatteryPercentView != null) { mBatteryPercentView.setText( Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java +8 −0 Original line number Diff line number Diff line Loading @@ -466,6 +466,14 @@ public class KeyguardStatusBarView extends RelativeLayout .onDensityOrFontScaleChanged(); } @Override public void onOverlayChanged() { mCarrierLabel.setTextAppearance( Utils.getThemeAttr(mContext, com.android.internal.R.attr.textAppearanceSmall)); onThemeChanged(); mBatteryView.updatePercentView(); } private void updateIconsAndTextColors() { @ColorInt int textColor = Utils.getColorAttrDefaultColor(mContext, R.attr.wallpaperTextColor); Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +4 −0 Original line number Diff line number Diff line Loading @@ -1167,6 +1167,10 @@ public class StatusBar extends SystemUI implements DemoMode, if (mBrightnessMirrorController != null) { mBrightnessMirrorController.onOverlayChanged(); } // We need the new R.id.keyguard_indication_area before recreating // mKeyguardIndicationController mNotificationPanel.onThemeChanged(); onThemeChanged(); } @Override Loading Loading
packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java +10 −2 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.animation.LayoutTransition; import android.animation.ObjectAnimator; import android.animation.PropertyValuesHolder; import android.annotation.ColorInt; import android.annotation.StyleRes; import android.app.PendingIntent; import android.content.Context; import android.graphics.Color; Loading Loading @@ -444,9 +445,11 @@ public class KeyguardSliceView extends LinearLayout implements View.OnClickListe static class KeyguardSliceButton extends Button implements ConfigurationController.ConfigurationListener { @StyleRes private static int sStyleId = R.style.TextAppearance_Keyguard_Secondary; public KeyguardSliceButton(Context context) { super(context, null /* attrs */, 0 /* styleAttr */, com.android.keyguard.R.style.TextAppearance_Keyguard_Secondary); super(context, null /* attrs */, 0 /* styleAttr */, sStyleId); onDensityOrFontScaleChanged(); setEllipsize(TruncateAt.END); } Loading @@ -468,6 +471,11 @@ public class KeyguardSliceView extends LinearLayout implements View.OnClickListe updatePadding(); } @Override public void onOverlayChanged() { setTextAppearance(sStyleId); } @Override public void setText(CharSequence text, BufferType type) { super.setText(text, type); Loading
packages/SystemUI/src/com/android/systemui/BatteryMeterView.java +11 −0 Original line number Diff line number Diff line Loading @@ -325,6 +325,17 @@ public class BatteryMeterView extends LinearLayout implements .inflate(R.layout.battery_percentage_view, null); } /** * Updates percent view by removing old one and reinflating if necessary */ public void updatePercentView() { if (mBatteryPercentView != null) { removeView(mBatteryPercentView); mBatteryPercentView = null; } updateShowPercent(); } private void updatePercentText() { if (mBatteryPercentView != null) { mBatteryPercentView.setText( Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java +8 −0 Original line number Diff line number Diff line Loading @@ -466,6 +466,14 @@ public class KeyguardStatusBarView extends RelativeLayout .onDensityOrFontScaleChanged(); } @Override public void onOverlayChanged() { mCarrierLabel.setTextAppearance( Utils.getThemeAttr(mContext, com.android.internal.R.attr.textAppearanceSmall)); onThemeChanged(); mBatteryView.updatePercentView(); } private void updateIconsAndTextColors() { @ColorInt int textColor = Utils.getColorAttrDefaultColor(mContext, R.attr.wallpaperTextColor); Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +4 −0 Original line number Diff line number Diff line Loading @@ -1167,6 +1167,10 @@ public class StatusBar extends SystemUI implements DemoMode, if (mBrightnessMirrorController != null) { mBrightnessMirrorController.onOverlayChanged(); } // We need the new R.id.keyguard_indication_area before recreating // mKeyguardIndicationController mNotificationPanel.onThemeChanged(); onThemeChanged(); } @Override Loading