Merge "Improve IME flicker when switching to work-profile task"

This commit is contained in:
TreeHugger Robot
2022-01-13 03:02:23 +00:00
committed by Android (Google) Code Review

View File

@@ -218,7 +218,6 @@ import android.view.Surface.Rotation;
import android.view.SurfaceControl;
import android.view.SurfaceControl.Transaction;
import android.view.SurfaceSession;
import android.view.View;
import android.view.WindowInsets;
import android.view.WindowManager;
import android.view.WindowManager.DisplayImePolicy;
@@ -1702,8 +1701,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
case SOFT_INPUT_STATE_HIDDEN:
return false;
}
return r.mLastImeShown && mInputMethodWindow != null && mInputMethodWindow.mHasSurface
&& mInputMethodWindow.mViewVisibility == View.VISIBLE;
return r.mLastImeShown;
}
/** Returns {@code true} if the top activity is transformed with the new rotation of display. */