Flip recents if setting is true

Bug: 72860694
Change-Id: I5cb71f553b2833a18a1b419b3744175bff963da8
This commit is contained in:
Tony Wickham
2018-02-26 16:41:57 -08:00
parent 7eadfc4f15
commit dfb5cc9a09
4 changed files with 32 additions and 10 deletions

View File

@@ -26,7 +26,6 @@ import com.android.launcher3.DeviceProfile;
import com.android.launcher3.Launcher;
import com.android.launcher3.LauncherState;
import com.android.launcher3.R;
import com.android.launcher3.Utilities;
import com.android.launcher3.Workspace;
import com.android.launcher3.userevent.nano.LauncherLogProto.ContainerType;
import com.android.quickstep.RecentsView;
@@ -111,7 +110,7 @@ public class OverviewState extends LauncherState {
scale * (halfWidth - ws.getPaddingLeft() - insets.left - childWidth / 2);
float translationX = pageRect.centerX() - childCenter;
if (Utilities.isRtl(launcher.getResources())) {
if (launcher.<RecentsView>getOverviewPanel().isRtl()) {
translationX -= offsetX / scale;
} else {
translationX += offsetX / scale;