From 61406f17b3041299a4350203682ff27bc15322e5 Mon Sep 17 00:00:00 2001 From: David Ferguson Date: Sun, 2 Jun 2013 12:23:41 -0400 Subject: SamsungQualcommRIL: evaluate samsungDriverCall in responseCallList() * fixes race condition where mRilVersion is not valid when setPhoneType() is called. When this happens, the auto-enable of samsungDriverCall for v7 RIL's is broken. The result is that hanging up does not work. Change-Id: I2642110d3683648aaff722c86d3dc21cbd9ee802 --- src/java/com/android/internal/telephony/SamsungQualcommRIL.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/java/com/android/internal/telephony/SamsungQualcommRIL.java b/src/java/com/android/internal/telephony/SamsungQualcommRIL.java index 125d518..52c8431 100644 --- a/src/java/com/android/internal/telephony/SamsungQualcommRIL.java +++ b/src/java/com/android/internal/telephony/SamsungQualcommRIL.java @@ -198,7 +198,13 @@ public class SamsungQualcommRIL extends RIL implements CommandsInterface { public void setPhoneType(int phoneType){ super.setPhoneType(phoneType); isGSM = (phoneType != RILConstants.CDMA_PHONE); + } + + @Override + protected Object + responseCallList(Parcel p) { samsungDriverCall = (needsOldRilFeature("newDriverCall") && !isGSM) || mRilVersion < 7 ? false : true; + return super.responseCallList(p); } @Override -- cgit v1.1