Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72f09d6a authored by Ming-Shin Lu's avatar Ming-Shin Lu Committed by Automerger Merge Worker
Browse files

Merge "Improve shouldRestoreImeVisibility perf" into sc-qpr1-dev am:...

Merge "Improve shouldRestoreImeVisibility perf" into sc-qpr1-dev am: b73c29a1 am: 51b909f1 am: 032df5e9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15542637

Change-Id: Iae712fe69402fc0095f9ecdfdd54f18ad5039adf
parents 42c12fa3 032df5e9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -8644,8 +8644,9 @@ public class WindowManagerService extends IWindowManager.Stub
            if (imeTargetWindowTask == null) {
                return false;
            }
            final TaskSnapshot snapshot = mAtmService.getTaskSnapshot(imeTargetWindowTask.mTaskId,
                    false /* isLowResolution */);
            final TaskSnapshot snapshot = getTaskSnapshot(imeTargetWindowTask.mTaskId,
                    imeTargetWindowTask.mUserId, false /* isLowResolution */,
                    false /* restoreFromDisk */);
            return snapshot != null && snapshot.hasImeSurface();
        }
    }