diff options
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java index 1e1bcd14e23b..74430a66d461 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java @@ -1,5 +1,7 @@ package com.android.keyguard; +import static com.android.systemui.shared.recents.utilities.Utilities.isTablet; + import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; @@ -100,7 +102,8 @@ public class KeyguardClockSwitch extends RelativeLayout { if (mDisplayedClockSize != null) { boolean landscape = newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE; - boolean useLargeClock = mDisplayedClockSize == LARGE && !landscape; + boolean useLargeClock = mDisplayedClockSize == LARGE && + (!landscape || isTablet(mContext)); animateClockChange(useLargeClock); } } @@ -291,7 +294,7 @@ public class KeyguardClockSwitch extends RelativeLayout { } boolean landscape = getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE; - boolean useLargeClock = clockSize == LARGE && !landscape; + boolean useLargeClock = clockSize == LARGE && (!landscape || isTablet(mContext)); // let's make sure clock is changed only after all views were laid out so we can // translate them properly |