Account for RTL with search animation

Change-Id: I869c285e7c0e7a3d14c1a897330d04b794390c76
This commit is contained in:
Peter Schiller
2016-07-14 18:17:08 -07:00
parent a30b51ceb2
commit 9413860349

View File

@@ -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);