summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Shrauner <shrauner@google.com>2014-03-03 21:43:01 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-03-03 21:43:02 +0000
commitfa5264310d8ccf07f4b011c4e1c2e609de4397db (patch)
treea76de98acf533dfb27d796e29bf6636f3c1f86b2
parent3a6b35fe93b96c44e94461b4acaa4bb544238f83 (diff)
parentbb910c6cef3833163543622e7af2c102546688ec (diff)
Merge "Fix ANR in UndemoteOutgoingCallReceiver" into klp-dev
-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();
}
}