summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Prigogin <sprigogin@google.com>2022-08-17 14:23:25 -0700
committerSergey Prigogin <sprigogin@google.com>2022-08-18 00:19:10 +0000
commit48cfb1a9efc8784d18bcd14acd16eea1094db837 (patch)
treed8e4193c7b1e14d3ea72413e6c14c7955ad09d33
parentdd742536ebe51d03a95c9f02ab23721e8166df5a (diff)
downloadidea-48cfb1a9efc8784d18bcd14acd16eea1094db837.tar.gz
Fix an erroneous condition
Test: manual due to difficulty of reproducing the issue in an automatic test Bug: 242608947 Change-Id: I64a059285e8c5ce308047e3b5340289dc45725b5
-rw-r--r--emulator/src/com/android/tools/idea/emulator/EmulatorView.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/emulator/src/com/android/tools/idea/emulator/EmulatorView.kt b/emulator/src/com/android/tools/idea/emulator/EmulatorView.kt
index 203e49491e8..af7872d4458 100644
--- a/emulator/src/com/android/tools/idea/emulator/EmulatorView.kt
+++ b/emulator/src/com/android/tools/idea/emulator/EmulatorView.kt
@@ -477,7 +477,8 @@ class EmulatorView(
val maxImageSize = maxSize.rotatedByQuadrants(orientationQuadrants)
val currentReceiver = screenshotReceiver
- if (currentReceiver != null && currentReceiver.maxImageSize == maxImageSize) {
+ if (currentReceiver != null &&
+ currentReceiver.maxImageSize == maxImageSize && currentReceiver.orientationQuadrants == orientationQuadrants) {
return // Keep the current screenshot feed because it is identical.
}