mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Setting recentsView orientation to match recents activity orientation
Test: can no longer repro incorrect orientation when launching apps from all apps
added logs to verify recents activity -> view were the same while rotating
turned off auto rotate and verified state matched
Bug: 288984663
Bug: 301024104
Change-Id: I7fc3b47bff0a99756aaf877bf634e2d162838d6f
This commit is contained in:
@@ -32,7 +32,6 @@ import android.os.Build;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.Surface;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
@@ -130,7 +129,9 @@ public class LauncherRecentsView extends RecentsView<QuickstepLauncher, Launcher
|
||||
@Override
|
||||
public void reset() {
|
||||
super.reset();
|
||||
setLayoutRotation(Surface.ROTATION_0, Surface.ROTATION_0);
|
||||
|
||||
int recentsActivityRotation = getPagedViewOrientedState().getRecentsActivityRotation();
|
||||
setLayoutRotation(recentsActivityRotation, recentsActivityRotation);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user