From 494dafc5d169366abe966f4c46ef6c2c1bc01565 Mon Sep 17 00:00:00 2001 From: Chen Xu Date: Thu, 17 Dec 2020 21:24:22 +0800 Subject: Red exclamation point icon in dialog disappears onPause Red exclamation point icon in dialog disappears for a while when moving to the link. The issue here is inside onPause, the imageView for the warning icon is set to invisible, not only the red exclamation point icon disappeared but text shifted to left. There is no need to make imageview disappear inside onPause given the dialog is no longer in the foreground. Bug: 172787290 Test: Manual test Change-Id: Id6d351f0aabdcdabe79aa338d3398eb67cd70371 --- src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java b/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java index e80fbddbd..2613184ec 100644 --- a/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java +++ b/src/com/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java @@ -200,9 +200,6 @@ public class CellBroadcastAlertDialog extends Activity { public void stopIconAnimation() { // Increment the counter so the handler will ignore the next message. mCount.incrementAndGet(); - if (mWarningIconView != null) { - mWarningIconView.setVisibility(View.GONE); - } } /** Update the visibility of the warning icon. */ -- cgit v1.2.3