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

Commit 63330e51 authored by Annie Chin's avatar Annie Chin
Browse files

Reset AlarmActivity animations on configuration change.

Bug: 20934499
Change-Id: I08dbb64f8b5c91c7347b7953a3adbdc140789db8
parent 5ae1f396
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -99,8 +99,7 @@
                android:excludeFromRecents="true"
                android:theme="@style/AlarmAlertFullScreenTheme"
                android:windowSoftInputMode="stateAlwaysHidden"
                android:showOnLockScreen="true"
                android:configChanges="orientation|screenSize|keyboardHidden|keyboard|navigation"/>
                android:showOnLockScreen="true" />

        <activity android:name="ScreensaverActivity"
                android:excludeFromRecents="true"
+3 −3
Original line number Diff line number Diff line
@@ -231,9 +231,6 @@ public class AlarmActivity extends AppCompatActivity
        mPulseAnimator.setInterpolator(PULSE_INTERPOLATOR);
        mPulseAnimator.setRepeatCount(ValueAnimator.INFINITE);
        mPulseAnimator.start();

        // Set the animators to their initial values.
        setAnimatedFractions(0.0f /* snoozeFraction */, 0.0f /* dismissFraction */);
    }

    @Override
@@ -264,6 +261,9 @@ public class AlarmActivity extends AppCompatActivity
            registerReceiver(mReceiver, filter);
            mReceiverRegistered = true;
        }

        // Set the animators to their initial values.
        setAnimatedFractions(0.0f /* snoozeFraction */, 0.0f /* dismissFraction */);
    }

    @Override