commit | 94138603495273ae7b13b193d8e952d607af7b89 | [log] [tgz] |
---|---|---|
author | Peter Schiller <peterschiller@google.com> | Thu Jul 14 18:17:08 2016 -0700 |
committer | Peter Schiller <peterschiller@google.com> | Thu Jul 14 18:17:08 2016 -0700 |
tree | 95814a21eb0161e1df0174f9041311d2104e77f5 | |
parent | a30b51ceb29e179caf7f441763ffeb6bfd336998 [diff] |
Account for RTL with search animation Change-Id: I869c285e7c0e7a3d14c1a897330d04b794390c76
diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java index 561cc41..f0469e3 100644 --- a/src/com/android/launcher3/allapps/AllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java
@@ -329,7 +329,11 @@ 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);