summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2013-11-19 12:04:56 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-11-19 12:04:56 -0800
commit217454bafc9ccf8ebd02f74bcd7cffec7bac8a9d (patch)
treed13a37ab2979bd65779f8568e3b3962bc4a970a3 /InCallUI
parent361655a48f91cf6d9f627d0f5201ba89fe9471e3 (diff)
parent7962e6910490286117c6b5a55550313dc7e5815c (diff)
am 4a2cf432: am 439ddb20: am 59dc0b9d: Merge "Decrease the timeout for unknown endcall screen from 5 to 2 sec." into klp-dev
* commit '4a2cf4323afeb9127f195e6f9bc098bedfba5438': Decrease the timeout for unknown endcall screen from 5 to 2 sec.
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/CallList.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/CallList.java b/InCallUI/src/com/android/incallui/CallList.java
index 125ec164d..e8edc4d35 100644
--- a/InCallUI/src/com/android/incallui/CallList.java
+++ b/InCallUI/src/com/android/incallui/CallList.java
@@ -25,6 +25,7 @@ import android.os.Handler;
import android.os.Message;
import com.android.services.telephony.common.Call;
+import com.android.services.telephony.common.Call.DisconnectCause;
import java.util.ArrayList;
import java.util.HashMap;
@@ -310,7 +311,9 @@ public class CallList {
if (state != Call.State.IDLE &&
state != Call.State.INVALID &&
state != Call.State.DISCONNECTED) {
+
call.setState(Call.State.DISCONNECTED);
+ call.setDisconnectCause(DisconnectCause.UNKNOWN);
updateCallInMap(call);
}
}
@@ -380,6 +383,7 @@ public class CallList {
delay = DISCONNECTED_CALL_SHORT_TIMEOUT_MS;
break;
case NORMAL:
+ case UNKNOWN:
delay = DISCONNECTED_CALL_MEDIUM_TIMEOUT_MS;
break;
case INCOMING_REJECTED: