summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorTiger Huang <tigerhuang@google.com>2021-12-24 17:54:15 +0800
committerTiger Huang <tigerhuang@google.com>2022-01-24 08:04:42 +0000
commitc797e0c63ae1f8ee1d1ab51be219e24b97cdab1f (patch)
treea2922ab42ee45b97ca0b54895c57643a1445dd22 /core/java/android/inputmethodservice/InputMethodService.java
parente45f1e5facd2851e1708304689408f3187b7e4b9 (diff)
Refine logic about compat scale
1. Make mGlobalScale and mInvGlobalScale always up-to-date. It was only updated before layout previously. We won't do layout at the server side then. So we update the scale when the upstream factors change. 2. Because of 1., we can return WindowState#getCompatInsetsState from addWindow and don't need to obtain it from getLayoutHint. 3. The logic in getLayoutHint didn't consider the overrideScale. This CL fixes it, and moves the logic to the only caller. We don't need getLayoutHint anymore. Bug: 161810301 Test: Use the following commands to test apps: adb shell am compat enable DOWNSCALED $packageName adb shell am compat enable DOWNSCALE_70 $packageName Change-Id: I67430cc61a6c086a8f232c711f63256523c77bb4
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions