am 9f936d6a: am e0515914: Merge "Show IME over keyguard if IME target is showing" into lmp-dev
* commit '9f936d6a6fa506f8bfc2916a426f1f197dd7c156': Show IME over keyguard if IME target is showing
This commit is contained in:
@@ -134,6 +134,9 @@ public class WifiAccessPointController {
|
||||
final List<AccessPoint> aps = new ArrayList<AccessPoint>(scanResults.size());
|
||||
final ArraySet<String> ssids = new ArraySet<String>();
|
||||
for (ScanResult scanResult : scanResults) {
|
||||
if (scanResult == null) {
|
||||
continue;
|
||||
}
|
||||
final String ssid = scanResult.SSID;
|
||||
if (TextUtils.isEmpty(ssid) || ssids.contains(ssid)) continue;
|
||||
if (!configured.containsKey(ssid)) continue;
|
||||
|
||||
@@ -248,6 +248,10 @@ public class WindowAnimator {
|
||||
|
||||
mForceHiding = KEYGUARD_NOT_SHOWN;
|
||||
|
||||
final WindowState imeTarget = mService.mInputMethodTarget;
|
||||
final boolean showImeOverKeyguard = imeTarget != null && imeTarget.isVisibleNow() &&
|
||||
(imeTarget.getAttrs().flags & FLAG_SHOW_WHEN_LOCKED) != 0;
|
||||
|
||||
for (int i = windows.size() - 1; i >= 0; i--) {
|
||||
WindowState win = windows.get(i);
|
||||
WindowStateAnimator winAnimator = win.mWinAnimator;
|
||||
@@ -312,7 +316,8 @@ public class WindowAnimator {
|
||||
+ " hidden=" + win.mRootToken.hidden
|
||||
+ " anim=" + win.mWinAnimator.mAnimation);
|
||||
} else if (mPolicy.canBeForceHidden(win, win.mAttrs)) {
|
||||
final boolean hideWhenLocked = (flags & FLAG_SHOW_WHEN_LOCKED) == 0;
|
||||
final boolean hideWhenLocked = (flags & FLAG_SHOW_WHEN_LOCKED) == 0 &&
|
||||
!(win.mIsImWindow && showImeOverKeyguard);
|
||||
final boolean changed;
|
||||
if (((mForceHiding == KEYGUARD_ANIMATING_IN)
|
||||
&& (!winAnimator.isAnimating() || hideWhenLocked))
|
||||
|
||||
Reference in New Issue
Block a user