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

Commit 97980088 authored by sbrissen's avatar sbrissen
Browse files

Fix for Signal bars on Samsung devices

Sometimes the CDMA ecio value is sent as a negative integer where we would expect a positive.
This causes SignalStrength.java to mark ecio as -160 (Unknown_Signal_Strength) and making signal bar
s clear out.
This "fix" checks the ecio value and takes it absolute value if it is negative.

Confirmed working on SCH-I500 and SPH-D710

Change-Id: Ic515dd6c92193cd5db75adf5bef93ecd617a5c6a
parent 9788e7f5
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -845,10 +845,13 @@ public class SamsungRIL extends RIL implements CommandsInterface {
            response[i] = -1;
        }

        if (mIsSamsungCdma)
        if (mIsSamsungCdma){
            if(response[3] < 0){
               response[3] = -response[3];
            }
            // Framework takes care of the rest for us.
            return response;

         }
        /* Matching Samsung signal strength to asu.
		   Method taken from Samsungs cdma/gsmSignalStateTracker */
        if(mSignalbarCount)