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

Commit 717d5811 authored by LuK1337's avatar LuK1337 Committed by Łukasz Patron
Browse files

SystemUI: Use proper lock icon scale on dismissing notification panel view

* I have no clue why 2.0f scale was used before,
  maybe it was some older AOSP leftover.
* Fixes too big lock icon after tapping mid
  swipe up animation on the lockscreen.

Test: When device is locked swipe up and tap on the screen
      during the animation; observe properly sized lock icon image.
Change-Id: Ifa4fda2871a8e1c7bb5300421602b1bc2c0cdbb9
parent 65c4b4cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1981,7 +1981,7 @@ public class NotificationPanelView extends PanelView implements
                || mStatusBar.getBarState() == StatusBarState.SHADE_LOCKED)) {
            KeyguardAffordanceView lockIcon = mKeyguardBottomArea.getLockIcon();
            lockIcon.setImageAlpha(0.0f, true, 100, Interpolators.FAST_OUT_LINEAR_IN, null);
            lockIcon.setImageScale(2.0f, true, 100, Interpolators.FAST_OUT_LINEAR_IN);
            lockIcon.setImageScale(1.0f, true, 100, Interpolators.FAST_OUT_LINEAR_IN);
        }
    }