summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Huang <jsh@google.com>2012-02-27 13:47:13 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-02-27 13:47:13 -0800
commitfd400f5f483d76a38a28155a7328a953ed3ec36f (patch)
treee12ff718acfee445a805db0817ca09e8ef549732
parent3cd9c12db3c83ef08ff57c410e67a2ea296d3c0c (diff)
parent0593c68a986152cd6c21cd92dca43a81c4060fd7 (diff)
downloadframeworks_base-fd400f5f483d76a38a28155a7328a953ed3ec36f.zip
frameworks_base-fd400f5f483d76a38a28155a7328a953ed3ec36f.tar.gz
frameworks_base-fd400f5f483d76a38a28155a7328a953ed3ec36f.tar.bz2
Merge "Prevent dial() return null in a racing condition."
-rw-r--r--telephony/java/com/android/internal/telephony/gsm/GsmCallTracker.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmCallTracker.java b/telephony/java/com/android/internal/telephony/gsm/GsmCallTracker.java
index 425afe6..b4e0775 100644
--- a/telephony/java/com/android/internal/telephony/gsm/GsmCallTracker.java
+++ b/telephony/java/com/android/internal/telephony/gsm/GsmCallTracker.java
@@ -167,7 +167,7 @@ public final class GsmCallTracker extends CallTracker {
/**
* clirMode is one of the CLIR_ constants
*/
- Connection
+ synchronized Connection
dial (String dialString, int clirMode, UUSInfo uusInfo) throws CallStateException {
// note that this triggers call state changed notif
clearDisconnected();
@@ -406,7 +406,7 @@ public final class GsmCallTracker extends CallTracker {
}
}
- protected void
+ protected synchronized void
handlePollCalls(AsyncResult ar) {
List polledCalls;