diff options
author | Pranav Vashi <neobuddy89@gmail.com> | 2020-05-29 00:44:15 +0530 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-09-27 21:17:05 +0800 |
commit | 74772e1d2686756137bcaaf0e572e79f1b46728f (patch) | |
tree | b04eca2e206efefcf73fc34b26c3dc6ac93e83ed | |
parent | acf23af1cbe9171df027a51af93b6d57b28b89a8 (diff) |
[crdroid][11.0] KeyguardClockSwitch: Fix missing status view on custom clocks
To replicate:
* Switch to Typographic clock
* Check keyguard status view is disabled
* Switch back to custom clock (like bold version)
* Keyguard status view remains disabled
Expectation:
* Keyguard status view should be visible
This patch fixes issue.
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: If61977cdaebc4852cead9bd3fadf5a2f095c42cc
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java index 25d7b983be4a..bcca8801685a 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java @@ -258,10 +258,8 @@ public class KeyguardClockSwitch extends RelativeLayout { mBigClockContainer.addView(bigClockView); updateBigClockVisibility(); } - // Hide default clock. - if (!plugin.shouldShowStatusArea()) { - mKeyguardStatusArea.setVisibility(View.GONE); - } + // Show / hide status area + mKeyguardStatusArea.setVisibility(plugin.shouldShowStatusArea() ? View.VISIBLE : View.GONE); // Initialize plugin parameters. mClockPlugin = plugin; mClockPlugin.setStyle(getPaint().getStyle()); |