summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-09-27 02:50:27 +0000
committerYorke Lee <yorkelee@google.com>2013-09-27 10:06:37 -0700
commitb4680c5b453d0c4028b34bf9dcd28ec76922e095 (patch)
treea1529b45543700f68cfd56690c8239032f74e27f
parentfe3fbd24097c51290b189f2788059c4083dd90a1 (diff)
Revert "Fix brief flash when clicking on a search result to dial"
This reverts commit 02403e5cd7eb0f1cff85146013e33691e1dc2e8b. Fixes bug: 10953115 Change-Id: Id52e794b6f48ccfeae00d1556cca9ab67378e47a
-rw-r--r--src/com/android/dialer/DialtactsActivity.java23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java
index 1a1713316..a4702c637 100644
--- a/src/com/android/dialer/DialtactsActivity.java
+++ b/src/com/android/dialer/DialtactsActivity.java
@@ -29,8 +29,6 @@ import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
-import android.os.Handler;
-import android.os.Message;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.provider.CallLog.Calls;
@@ -168,21 +166,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
private DialerDatabaseHelper mDialerDatabaseHelper;
- private static final int EVENT_DELAYED_HIDE_SEARCH = 1;
-
- // Wait this much time (in ms) before hiding the search fragment after clicking on
- // a search result to dial, to avoid jank
- private static final int CLEAR_SEARCH_DELAY = 500;
-
- final Handler mHandler = new Handler() {
- @Override
- public void handleMessage(Message msg) {
- if (msg.what == EVENT_DELAYED_HIDE_SEARCH) {
- hideDialpadAndSearchUi();
- }
- }
- };
-
private class OverflowPopupMenu extends PopupMenu {
public OverflowPopupMenu(Context context, View anchor) {
super(context, anchor);
@@ -209,16 +192,14 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
// CallLog screen (search UI will be automatically exited).
PhoneNumberInteraction.startInteractionForPhoneCall(
DialtactsActivity.this, dataUri, getCallOrigin());
- mHandler.sendEmptyMessageDelayed(EVENT_DELAYED_HIDE_SEARCH,
- CLEAR_SEARCH_DELAY);
+ hideDialpadAndSearchUi();
}
@Override
public void onCallNumberDirectly(String phoneNumber) {
Intent intent = CallUtil.getCallIntent(phoneNumber, getCallOrigin());
startActivity(intent);
- mHandler.sendEmptyMessageDelayed(EVENT_DELAYED_HIDE_SEARCH,
- CLEAR_SEARCH_DELAY);
+ hideDialpadAndSearchUi();
}
@Override