summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
diff options
context:
space:
mode:
authorMatt Pietal <mpietal@google.com>2020-12-16 15:39:32 -0500
committerMatt Pietal <mpietal@google.com>2020-12-17 08:54:14 -0500
commit17a635e5142d209da85d05dedd2c157f0ce2bdeb (patch)
tree6f21f730c5c926dc26c0b3955a2af3851b1f9b18 /packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
parent2d0c5b8abeefb6bd36e82f492e3beaf36b460868 (diff)
AOD/LS - Large clock animations
Match latest specs for large/small clock transitions, including a fade and y-axis shift. Bug: 172360102 Test: manual, show/hide all notifications Change-Id: I8d756bfbc524481d7b8835946acf05aa4893a1d5
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java')
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
index 4d6e8a90e57b..e0de180e657c 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java
@@ -21,7 +21,6 @@ import android.content.ContentResolver;
import android.content.res.Resources;
import android.provider.Settings;
import android.text.format.DateFormat;
-import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
@@ -146,11 +145,10 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
}
/**
- * Updates clock's text
+ * Apply dp changes on font/scale change
*/
public void onDensityOrFontScaleChanged() {
- mView.setTextSize(TypedValue.COMPLEX_UNIT_PX,
- mResources.getDimensionPixelSize(R.dimen.widget_big_font_size));
+ mView.onDensityOrFontScaleChanged();
}
/**