Loading services/core/java/com/android/server/wm/InputMonitor.java +2 −1 Original line number Diff line number Diff line Loading @@ -265,6 +265,7 @@ final class InputMonitor { consumer.mWindowHandle.layoutParamsFlags |= FLAG_NOT_TOUCH_MODAL; break; case INPUT_CONSUMER_RECENTS_ANIMATION: consumer.mWindowHandle.focusable = true; break; default: throw new IllegalArgumentException("Illegal input consumer : " + name Loading Loading @@ -545,7 +546,7 @@ final class InputMonitor { if (mAddRecentsAnimationInputConsumerHandle && shouldApplyRecentsInputConsumer) { if (recentsAnimationController.updateInputConsumerForApp( mRecentsAnimationInputConsumer.mWindowHandle, focusable)) { mRecentsAnimationInputConsumer.mWindowHandle)) { mRecentsAnimationInputConsumer.show(mInputTransaction, w); mAddRecentsAnimationInputConsumerHandle = false; } Loading services/core/java/com/android/server/wm/RecentsAnimationController.java +1 −3 Original line number Diff line number Diff line Loading @@ -827,15 +827,13 @@ public class RecentsAnimationController implements DeathRecipient { && !isTargetApp(activity) && isAnimatingApp(activity); } boolean updateInputConsumerForApp(InputWindowHandle inputWindowHandle, boolean focusable) { boolean updateInputConsumerForApp(InputWindowHandle inputWindowHandle) { // Update the input consumer touchable region to match the target app main window final WindowState targetAppMainWindow = mTargetActivityRecord != null ? mTargetActivityRecord.findMainWindow() : null; if (targetAppMainWindow != null) { targetAppMainWindow.getBounds(mTmpRect); inputWindowHandle.focusable = focusable; inputWindowHandle.touchableRegion.set(mTmpRect); return true; } Loading Loading
services/core/java/com/android/server/wm/InputMonitor.java +2 −1 Original line number Diff line number Diff line Loading @@ -265,6 +265,7 @@ final class InputMonitor { consumer.mWindowHandle.layoutParamsFlags |= FLAG_NOT_TOUCH_MODAL; break; case INPUT_CONSUMER_RECENTS_ANIMATION: consumer.mWindowHandle.focusable = true; break; default: throw new IllegalArgumentException("Illegal input consumer : " + name Loading Loading @@ -545,7 +546,7 @@ final class InputMonitor { if (mAddRecentsAnimationInputConsumerHandle && shouldApplyRecentsInputConsumer) { if (recentsAnimationController.updateInputConsumerForApp( mRecentsAnimationInputConsumer.mWindowHandle, focusable)) { mRecentsAnimationInputConsumer.mWindowHandle)) { mRecentsAnimationInputConsumer.show(mInputTransaction, w); mAddRecentsAnimationInputConsumerHandle = false; } Loading
services/core/java/com/android/server/wm/RecentsAnimationController.java +1 −3 Original line number Diff line number Diff line Loading @@ -827,15 +827,13 @@ public class RecentsAnimationController implements DeathRecipient { && !isTargetApp(activity) && isAnimatingApp(activity); } boolean updateInputConsumerForApp(InputWindowHandle inputWindowHandle, boolean focusable) { boolean updateInputConsumerForApp(InputWindowHandle inputWindowHandle) { // Update the input consumer touchable region to match the target app main window final WindowState targetAppMainWindow = mTargetActivityRecord != null ? mTargetActivityRecord.findMainWindow() : null; if (targetAppMainWindow != null) { targetAppMainWindow.getBounds(mTmpRect); inputWindowHandle.focusable = focusable; inputWindowHandle.touchableRegion.set(mTmpRect); return true; } Loading