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

Commit 5ef5b1ae authored by Daniel Bateman's avatar Daniel Bateman
Browse files

SamsungRIL: clean up and re-organization

Clean up some messy code in the Samsung RIL.

Change-Id: If8bc9c0e4264de5919be1b6a858896076c879708
parent d628aa06
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -230,13 +230,9 @@ public class SamsungRIL extends RIL implements CommandsInterface {
        }

        if (error != 0) {
            //ugly fix for Samsung messing up SMS_SEND request fail in binary RIL
            if(!(error == -1 && rr.mRequest == RIL_REQUEST_SEND_SMS))
            // Ugly fix for Samsung messing up SMS_SEND request fail in binary RIL
            if (error == -1 && rr.mRequest == RIL_REQUEST_SEND_SMS)
            {
                rr.onError(error, ret);
                rr.release();
                return;
            } else {
                try
                {
                    ret = responseSMS(p);
@@ -248,6 +244,10 @@ public class SamsungRIL extends RIL implements CommandsInterface {
                    rr.release();
                    return;
                }
            } else {
                rr.onError(error, ret);
                rr.release();
                return;
            }
        }