Loading packages/SystemUI/shared/src/com/android/systemui/shared/rotation/RotationButtonController.java +12 −7 Original line number Diff line number Diff line Loading @@ -702,12 +702,17 @@ public class RotationButtonController { @Override public void onActivityRequestedOrientationChanged(int taskId, int requestedOrientation) { // Only hide the icon if the top task changes its requestedOrientation // Launcher can alter its requestedOrientation while it's not on top, don't hide on this mBgExecutor.execute(() -> { // Only hide the icon if the top task changes its requestedOrientation Launcher can // alter its requestedOrientation while it's not on top, don't hide on this Optional.ofNullable(ActivityManagerWrapper.getInstance()) .map(ActivityManagerWrapper::getRunningTask) .ifPresent(a -> { if (a.id == taskId) setRotateSuggestionButtonState(false /* visible */); if (a.id == taskId) { mMainThreadHandler.post(() -> setRotateSuggestionButtonState(false /* visible */)); } }); }); } } Loading Loading
packages/SystemUI/shared/src/com/android/systemui/shared/rotation/RotationButtonController.java +12 −7 Original line number Diff line number Diff line Loading @@ -702,12 +702,17 @@ public class RotationButtonController { @Override public void onActivityRequestedOrientationChanged(int taskId, int requestedOrientation) { // Only hide the icon if the top task changes its requestedOrientation // Launcher can alter its requestedOrientation while it's not on top, don't hide on this mBgExecutor.execute(() -> { // Only hide the icon if the top task changes its requestedOrientation Launcher can // alter its requestedOrientation while it's not on top, don't hide on this Optional.ofNullable(ActivityManagerWrapper.getInstance()) .map(ActivityManagerWrapper::getRunningTask) .ifPresent(a -> { if (a.id == taskId) setRotateSuggestionButtonState(false /* visible */); if (a.id == taskId) { mMainThreadHandler.post(() -> setRotateSuggestionButtonState(false /* visible */)); } }); }); } } Loading