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

Commit f0ef26af authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Fix system crash on p2p failure

A previous change missed out a function that accepts an
integer argument as arg1. Instead, it was being passed as
parcelable which causes a fatal exception

Bug: 5271220
Change-Id: I3b78d9ce9ab742aa89ceaae17116fb7245187863
parent 8b55e926
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1211,6 +1211,11 @@ public class WifiP2pService extends IWifiP2pManager.Stub {
        mReplyChannel.replyToMessage(msg, what);
    }

    private void replyToMessage(Message msg, int what, int arg1) {
        if (msg.replyTo == null) return;
        mReplyChannel.replyToMessage(msg, what, arg1);
    }

    private void replyToMessage(Message msg, int what, Object obj) {
        if (msg.replyTo == null) return;
        mReplyChannel.replyToMessage(msg, what, obj);