Loading packages/SystemUI/res/drawable/ic_dismiss_all.xml +1 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:autoMirrored="true" android:viewportWidth="48.0" android:viewportHeight="48.0"> <path Loading packages/SystemUI/src/com/android/systemui/SwipeHelper.java +4 −1 Original line number Diff line number Diff line Loading @@ -311,11 +311,14 @@ public class SwipeHelper implements Gefingerpoken { final View animView = mCallback.getChildContentView(view); final boolean canAnimViewBeDismissed = mCallback.canChildBeDismissed(view); float newPos; boolean isLayoutRtl = view.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; if (velocity < 0 || (velocity == 0 && getTranslation(animView) < 0) // if we use the Menu to dismiss an item in landscape, animate up || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y)) { || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y) // if the language is rtl we prefer swiping to the left || (velocity == 0 && getTranslation(animView) == 0 && isLayoutRtl)) { newPos = -getSize(animView); } else { newPos = getSize(animView); Loading Loading
packages/SystemUI/res/drawable/ic_dismiss_all.xml +1 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:autoMirrored="true" android:viewportWidth="48.0" android:viewportHeight="48.0"> <path Loading
packages/SystemUI/src/com/android/systemui/SwipeHelper.java +4 −1 Original line number Diff line number Diff line Loading @@ -311,11 +311,14 @@ public class SwipeHelper implements Gefingerpoken { final View animView = mCallback.getChildContentView(view); final boolean canAnimViewBeDismissed = mCallback.canChildBeDismissed(view); float newPos; boolean isLayoutRtl = view.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; if (velocity < 0 || (velocity == 0 && getTranslation(animView) < 0) // if we use the Menu to dismiss an item in landscape, animate up || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y)) { || (velocity == 0 && getTranslation(animView) == 0 && mSwipeDirection == Y) // if the language is rtl we prefer swiping to the left || (velocity == 0 && getTranslation(animView) == 0 && isLayoutRtl)) { newPos = -getSize(animView); } else { newPos = getSize(animView); Loading