Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a144d266 authored by Isaac Katzenelson's avatar Isaac Katzenelson Committed by Isaac Katzenelson
Browse files

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 b18aea79)
parent 4de68a06
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -310,6 +310,7 @@ public class AlarmAlertFullScreen extends Activity implements GlowPadView.OnTrig
            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) {
@@ -317,6 +318,12 @@ public class AlarmAlertFullScreen extends Activity implements GlowPadView.OnTrig
        }
    }

    @Override
    protected void onPause() {
        super.onPause();
        mPingEnabled = false;
    }

    @Override
    public void onDestroy() {
        super.onDestroy();