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

Commit 98a8b9e3 authored by David Zhao's avatar David Zhao
Browse files

Fix crash when calling sendTimeShiftMode

Bug: 269185572
Test: atest TvInteractiveAppServiceTest
Change-Id: Ia916536d2cfa3b9e1222cbf961c521d2b0b232af
parent 6dda82f9
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -190,7 +190,9 @@ public class ITvInteractiveAppSessionWrapper
                break;
            }
            case DO_SEND_TIME_SHIFT_MODE: {
                mSessionImpl.sendTimeShiftMode((Integer) msg.obj);
                SomeArgs args = (SomeArgs) msg.obj;
                mSessionImpl.sendTimeShiftMode(args.argi1);
                args.recycle();
                break;
            }
            case DO_SEND_AVAILABLE_SPEEDS: {
@@ -443,8 +445,7 @@ public class ITvInteractiveAppSessionWrapper

    @Override
    public void sendTimeShiftMode(int mode) {
        mCaller.executeOrSendMessage(
                mCaller.obtainMessageI(DO_SEND_TIME_SHIFT_MODE, mode));
        mCaller.executeOrSendMessage(mCaller.obtainMessageI(DO_SEND_TIME_SHIFT_MODE, mode));
    }

    @Override