From 94138603495273ae7b13b193d8e952d607af7b89 Mon Sep 17 00:00:00 2001 From: Peter Schiller Date: Thu, 14 Jul 2016 18:17:08 -0700 Subject: Account for RTL with search animation Change-Id: I869c285e7c0e7a3d14c1a897330d04b794390c76 --- src/com/android/launcher3/allapps/AllAppsContainerView.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java index 561cc41c2..f0469e379 100644 --- a/src/com/android/launcher3/allapps/AllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java @@ -329,7 +329,11 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc searchInputAnimator.end(); } - searchInputAnimator.setFloatValues(searchHint.getLeft(), 0); + if (Utilities.isRtl(getContext().getResources())) { + searchInputAnimator.setFloatValues(-searchHint.getLeft(), 0); + } else { + searchInputAnimator.setFloatValues(searchHint.getLeft(), 0); + } searchInputAnimator.start(); } else { searchHint.setVisibility(View.VISIBLE); -- cgit v1.2.3