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

Commit 0507e979 authored by M1cha's avatar M1cha Committed by Steve Kondik
Browse files

telephony: do only run setCellInfoListRate for RIL version >= 8

old libraries like those from MR0 don't support this and sending this command causes endless wakelocks

Change-Id: Ia47d366f70841eb9910079e105add407f58e7555
parent 59ff8c5e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3295,6 +3295,7 @@ public class RIL extends BaseCommands implements CommandsInterface {
                setRadioPower(false, null);
                setPreferredNetworkType(mPreferredNetworkType, null);
                setCdmaSubscriptionSource(mCdmaSubscription, null);
                if(mRilVersion >= 8)
                    setCellInfoListRate(Integer.MAX_VALUE, null);
                notifyRegistrantsRilConnectionChanged(((int[])ret)[0]);
                break;