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

Commit 1e31287f authored by Kolja Dummann's avatar Kolja Dummann
Browse files

telephony: fix mistake while comparing strings

use string.equals instead of == what will fail cause it compares instances and
not content.

Change-Id: Ife0b402d2e30c870b06969dd1c567526998cc0e1
parent abff94d3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -110,9 +110,11 @@ public class PhoneFactory {
                //reads the system properties and makes commandsinterface

                String sRILClassname = SystemProperties.get("ro.telephony.ril_class");
                Log.i(LOG_TAG, "RILClassname is " + sRILClassname);

                if(sRILClassname == "samsung")
                if("samsung".equals(sRILClassname))
                {
                    Log.i(LOG_TAG, "Using Samsung RIL");
                    sCommandsInterface = new SamsungRIL(context, networkMode, cdmaSubscription);
                } else {
                    sCommandsInterface = new RIL(context, networkMode, cdmaSubscription);