Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 790e281f authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "[Status Bar] Fix carrier and userSwitchName text style flaw" into main am: 5ee2adb1

parents 10efd19e 5ee2adb1
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -439,13 +439,14 @@ public class KeyguardStatusBarView extends RelativeLayout {

    /** Should only be called from {@link KeyguardStatusBarViewController}. */
    void onOverlayChanged() {
        int theme = Utils.getThemeAttr(mContext, com.android.internal.R.attr.textAppearanceSmall);
        mCarrierLabel.setTextAppearance(theme);
        final int carrierTheme = R.style.TextAppearance_StatusBar_Clock;
        mCarrierLabel.setTextAppearance(carrierTheme);
        mBatteryView.updatePercentView();

        final int userSwitcherTheme = R.style.TextAppearance_StatusBar_UserChip;
        TextView userSwitcherName = mUserSwitcherContainer.findViewById(R.id.current_user_name);
        if (userSwitcherName != null) {
            userSwitcherName.setTextAppearance(theme);
            userSwitcherName.setTextAppearance(userSwitcherTheme);
        }
    }