summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Shrauner <shrauner@google.com>2014-03-03 21:48:35 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-03 21:48:35 +0000
commitc31ed856d1ee198b6c7e680ec934c7ace8b5d939 (patch)
treee09ed3236833be6f3cf3b04fb476c43b749120de
parentf83fc5a5de36ddd6a18b1de995e2dc173c4c84d2 (diff)
parent5aadb11c5d7ec17b4f8ebc75cc940ddb726ce1f9 (diff)
am 5aadb11c: am fa526431: Merge "Fix ANR in UndemoteOutgoingCallReceiver" into klp-dev
* commit '5aadb11c5d7ec17b4f8ebc75cc940ddb726ce1f9': Fix ANR in UndemoteOutgoingCallReceiver
-rw-r--r--src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java b/src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java
index 30d01d2f8..fb9b1d1aa 100644
--- a/src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java
+++ b/src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java
@@ -41,16 +41,16 @@ public class UndemoteOutgoingCallReceiver extends BroadcastReceiver {
if (TextUtils.isEmpty(number)) {
return;
}
- final long id = getContactIdFromPhoneNumber(context, number);
- if (id != NO_CONTACT_FOUND) {
- final Thread thread = new Thread() {
- @Override
- public void run() {
+ final Thread thread = new Thread() {
+ @Override
+ public void run() {
+ final long id = getContactIdFromPhoneNumber(context, number);
+ if (id != NO_CONTACT_FOUND) {
undemoteContactWithId(context, id);
}
- };
- thread.start();
- }
+ }
+ };
+ thread.start();
}
}