Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82f044c5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add null check before hiding ime" into main

parents 583ccb5f e9bda90b
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -227,7 +227,13 @@ public class DisplayImeController implements DisplayController.OnDisplaysChanged
    /** Hides the IME for Bubbles when the device is locked. */
    public void hideImeForBubblesWhenLocked(int displayId) {
        PerDisplay pd = mImePerDisplay.get(displayId);
        pd.setImeInputTargetRequestedVisibility(false, pd.getImeSourceControl().getImeStatsToken());
        InsetsSourceControl imeSourceControl = pd.getImeSourceControl();
        if (imeSourceControl != null) {
            ImeTracker.Token imeStatsToken = imeSourceControl.getImeStatsToken();
            if (imeStatsToken != null) {
                pd.setImeInputTargetRequestedVisibility(false, imeStatsToken);
            }
        }
    }

    /** An implementation of {@link IDisplayWindowInsetsController} for a given display id. */