From 00ce73a418031bf08e6d092b7c44e3c81d2b0442 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Wed, 31 Jul 2019 16:36:43 -0700 Subject: [PATCH] Fix issue where SIM PIN message would be visible We're resetting the view state when a config change happens, but they can arrive even after the view is not visible anymore. Let's not update the message area if we're GONE, since the message area is shared with the Pattern and PIN pad views. Test: manual Fixes: 138751729 Change-Id: Idb4877f8ed22e8b640670bb9da66bb124a2f8166 --- .../SystemUI/src/com/android/keyguard/KeyguardSimPinView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSimPinView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSimPinView.java index fb3a586677aa9..69da990a0a73a 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSimPinView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSimPinView.java @@ -123,7 +123,7 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView { msg = rez.getString(R.string.kg_sim_lock_esim_instructions, msg); } - if (mSecurityMessageDisplay != null) { + if (mSecurityMessageDisplay != null && getVisibility() == VISIBLE) { mSecurityMessageDisplay.setMessage(msg); } mSimImageView.setImageTintList(ColorStateList.valueOf(color));