OSDN Git Service

Fix IME is beyond the screen if the app doesn't fill its parent bounds
authorRiddle Hsu <riddlehsu@google.com>
Thu, 14 Mar 2019 08:54:26 +0000 (16:54 +0800)
committerRiddle Hsu <riddlehsu@google.com>
Fri, 15 Mar 2019 05:14:36 +0000 (13:14 +0800)
commit6d6f67cdcce160685e2fb36f0913bec5dc5076f9
treeb1d927e8734a45c9cd3ecbf9f2b50fc5a78f6c38
parentbbe1969596ac122e87193ca9200ad8963ddc5b30
Fix IME is beyond the screen if the app doesn't fill its parent bounds

An activity with fixed aspect ratio may not cover the entire screen.
Once the left of the app surface is not the same as the left display
dock frame, the IME will be beyond the screen.

Bug: 128581369
Test: atest DisplayContentTests#testComputeImeParent_app_notMatchParentBounds
Test: manual - Launch a landscape activity with fixed aspect ratio 1.2.
      Click the input field in the activity and check the IME position.

Change-Id: If4125a18042e45efae1f8115008b0374b2669084
services/core/java/com/android/server/wm/DisplayContent.java
services/tests/wmtests/src/com/android/server/wm/DisplayContentTests.java