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

Commit 76a34e24 authored by Robert Snoeberger's avatar Robert Snoeberger Committed by android-build-merger
Browse files

Merge "Check for header when restoring default clock." into qt-r1-dev am: a3ce8b53

am: c7721408

Change-Id: I2eb80cc38d9453e66801b9978c70976763e11757
parents 5db521dd c7721408
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -222,8 +222,13 @@ public class KeyguardClockSwitch extends RelativeLayout {
            mClockPlugin = null;
        }
        if (plugin == null) {
            if (mShowingHeader) {
                mClockView.setVisibility(View.GONE);
                mClockViewBold.setVisibility(View.VISIBLE);
            } else {
                mClockView.setVisibility(View.VISIBLE);
                mClockViewBold.setVisibility(View.INVISIBLE);
            }
            mKeyguardStatusArea.setVisibility(View.VISIBLE);
            return;
        }
@@ -401,10 +406,13 @@ public class KeyguardClockSwitch extends RelativeLayout {
     * these cases.
     */
    void setKeyguardShowingHeader(boolean hasHeader) {
        if (mShowingHeader == hasHeader || hasCustomClock()) {
        if (mShowingHeader == hasHeader) {
            return;
        }
        mShowingHeader = hasHeader;
        if (hasCustomClock()) {
            return;
        }

        float smallFontSize = mContext.getResources().getDimensionPixelSize(
                R.dimen.widget_small_font_size);