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
This commit is contained in:
Lucas Dupin
2019-07-31 16:36:43 -07:00
parent 91ce40fa1a
commit 00ce73a418

View File

@@ -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));