Disable GlowPad animation when alert activity is done
Bug: 9825266
The mPingEnabled was not set to flase when the alarm was dismissed, so the
handler was restarting the ping animation of the GlowPad.
Change-Id: I8e0de4ecd86a2a4df7237cd4cbe71aa97272a089
(cherry picked from commit b18aea794b2d81b15b78a338b6708231657518be)
diff --git a/src/com/android/deskclock/AlarmAlertFullScreen.java b/src/com/android/deskclock/AlarmAlertFullScreen.java
index 8f1582c..bbfdcf3 100644
--- a/src/com/android/deskclock/AlarmAlertFullScreen.java
+++ b/src/com/android/deskclock/AlarmAlertFullScreen.java
@@ -310,6 +310,7 @@
mGlowPadView.setTargetDescriptionsResourceId(R.array.dismiss_descriptions);
mGlowPadView.setDirectionDescriptionsResourceId(R.array.dismiss_direction_descriptions);
}
+ mPingEnabled = true;
// The activity is locked to the default orientation as a default set in the manifest
// Override this settings if the device is docked or config set it differently
if (getResources().getBoolean(R.bool.config_rotateAlarmAlert) || mIsDocked) {
@@ -318,6 +319,12 @@
}
@Override
+ protected void onPause() {
+ super.onPause();
+ mPingEnabled = false;
+ }
+
+ @Override
public void onDestroy() {
super.onDestroy();
if (LOG) Log.v("AlarmAlertFullScreen.onDestroy()");