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

Commit aa696598 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixed NPE on VoiceInteractor.destroy()" into qt-dev

parents b26d0037 8092cdae
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -79,10 +79,10 @@ public final class VoiceInteractor {
    /** @hide */
    public static final String KEY_KILL_SIGNAL = "key_kill_signal";

    IVoiceInteractor mInteractor;
    @Nullable IVoiceInteractor mInteractor;

    Context mContext;
    Activity mActivity;
    @Nullable Context mContext;
    @Nullable Activity mActivity;
    boolean mRetaining;

    final HandlerCaller mHandlerCaller;
@@ -999,8 +999,10 @@ public final class VoiceInteractor {

        // destroyed now
        mInteractor = null;
        if (mActivity != null) {
            mActivity.setVoiceInteractor(null);
        }
    }

    public boolean submitRequest(Request request) {
        return submitRequest(request, null);