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

Commit 212f625b authored by Chet Haase's avatar Chet Haase
Browse files

Optimized swipe animation for Recents app.

Removed the delay after the swipe and before the remaining items
animated into their new places. Also, expanded container of app so
that it no longer clips the swiped thumbnails on the right (on tablet).

Change-Id: I3d757a3b42bf0d1e002fab5b74b47c1e7f4f97a2
parent 08633c79
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -359,7 +359,9 @@ public class RecentsPanelView extends RelativeLayout
    }

    private void createCustomAnimations(LayoutTransition transitioner) {
        transitioner.setDuration(LayoutTransition.DISAPPEARING, 250);
        transitioner.setDuration(200);
        transitioner.setStartDelay(LayoutTransition.CHANGE_DISAPPEARING, 0);
        transitioner.setAnimator(LayoutTransition.DISAPPEARING, null);
    }

    @Override
+2 −2
Original line number Diff line number Diff line
@@ -297,8 +297,8 @@ public class TabletStatusBar extends StatusBar implements
        mStatusBarView.setIgnoreChildren(2, mRecentButton, mRecentsPanel);

        lp = new WindowManager.LayoutParams(
                ViewGroup.LayoutParams.WRAP_CONTENT,
                ViewGroup.LayoutParams.WRAP_CONTENT,
                ViewGroup.LayoutParams.MATCH_PARENT,
                ViewGroup.LayoutParams.MATCH_PARENT,
                WindowManager.LayoutParams.TYPE_STATUS_BAR_PANEL,
                WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
                    | WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM