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

Commit 51810d56 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where the shelf could be stuck translating

Because we were reusing the existing translation, we could
get stuck in a bad state.

Test: unlock right during the locking motion where the icons appear.
Change-Id: I0e25836a983d67a6bc27475dda90d9b3404dac27
Fixes: 111551574
parent d54c3a30
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -151,12 +151,11 @@ public class NotificationShelf extends ActivatableNotificationView implements
    }

    public void fadeInTranslating() {
        float translation = mShelfIcons.getTranslationY();
        mShelfIcons.setTranslationY(translation - mShelfAppearTranslation);
        mShelfIcons.setTranslationY(-mShelfAppearTranslation);
        mShelfIcons.setAlpha(0);
        mShelfIcons.animate()
                .setInterpolator(Interpolators.DECELERATE_QUINT)
                .translationY(translation)
                .translationY(0)
                .setDuration(SHELF_IN_TRANSLATION_DURATION)
                .start();
        mShelfIcons.animate()