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

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

Merge "Expose IMMI object for Proxy class" into main

parents 6ab8e73c 5cd2e537
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -335,6 +335,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
    final Resources mRes;
    final Resources mRes;
    private final Handler mHandler;
    private final Handler mHandler;


    private final InputMethodManagerInternal mInputMethodManagerInternal;
    @NonNull
    @NonNull
    private final Handler mIoHandler;
    private final Handler mIoHandler;


@@ -1131,6 +1132,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
            mHwController = new HandwritingModeController(mContext, uiLooper,
            mHwController = new HandwritingModeController(mContext, uiLooper,
                    new InkWindowInitializer(), discardDelegationTextRunnable);
                    new InkWindowInitializer(), discardDelegationTextRunnable);
            registerDeviceListenerAndCheckStylusSupport();
            registerDeviceListenerAndCheckStylusSupport();
            mInputMethodManagerInternal = new LocalServiceImpl();
        }
        }
    }
    }


@@ -5585,7 +5587,12 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
    }
    }


    private void publishLocalService() {
    private void publishLocalService() {
        LocalServices.addService(InputMethodManagerInternal.class, new LocalServiceImpl());
        LocalServices.addService(InputMethodManagerInternal.class, mInputMethodManagerInternal);
    }

    // TODO(b/352228316): Remove it once IMMIProxy is removed.
    InputMethodManagerInternal getLocalService(){
        return mInputMethodManagerInternal;
    }
    }


    private final class LocalServiceImpl extends InputMethodManagerInternal {
    private final class LocalServiceImpl extends InputMethodManagerInternal {