diff options
author | Jay Shrauner <shrauner@google.com> | 2014-03-03 21:48:35 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-03 21:48:35 +0000 |
commit | c31ed856d1ee198b6c7e680ec934c7ace8b5d939 (patch) | |
tree | e09ed3236833be6f3cf3b04fb476c43b749120de /src | |
parent | f83fc5a5de36ddd6a18b1de995e2dc173c4c84d2 (diff) | |
parent | 5aadb11c5d7ec17b4f8ebc75cc940ddb726ce1f9 (diff) |
am 5aadb11c: am fa526431: Merge "Fix ANR in UndemoteOutgoingCallReceiver" into klp-dev
* commit '5aadb11c5d7ec17b4f8ebc75cc940ddb726ce1f9':
Fix ANR in UndemoteOutgoingCallReceiver
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/interactions/UndemoteOutgoingCallReceiver.java | 16 |
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(); } } |