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

Commit 0da94ffc authored by Taran Singh's avatar Taran Singh Committed by Android (Google) Code Review
Browse files

Merge "Invalidate stylus handwriting availability cache" into main

parents cd727291 932aa772
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ import android.util.Slog;
import android.view.WindowManager;
import android.view.inputmethod.InputMethod;
import android.view.inputmethod.InputMethodInfo;
import android.view.inputmethod.InputMethodManager;

import com.android.internal.annotations.GuardedBy;
import com.android.internal.annotations.VisibleForTesting;
@@ -295,7 +296,12 @@ final class InputMethodBindingController {
                    }
                    if (DEBUG) Slog.v(TAG, "Initiating attach with token: " + mCurToken);
                    final InputMethodInfo info = mMethodMap.get(mSelectedMethodId);
                    boolean supportsStylusHwChanged =
                            mSupportsStylusHw != info.supportsStylusHandwriting();
                    mSupportsStylusHw = info.supportsStylusHandwriting();
                    if (supportsStylusHwChanged) {
                        InputMethodManager.invalidateLocalStylusHandwritingAvailabilityCaches();
                    }
                    mService.initializeImeLocked(mCurMethod, mCurToken);
                    mService.scheduleNotifyImeUidToAudioService(mCurMethodUid);
                    mService.reRequestCurrentClientSessionLocked();
+0 −2
Original line number Diff line number Diff line
@@ -2315,8 +2315,6 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub
            mCurClient = null;
            ImeTracker.forLogging().onFailed(mCurStatsToken, ImeTracker.PHASE_SERVER_WAIT_IME);
            mCurStatsToken = null;
            InputMethodManager.invalidateLocalStylusHandwritingAvailabilityCaches();

            mMenuController.hideInputMethodMenuLocked();
        }
    }