summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-09-18 20:03:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-09-18 20:03:23 +0000
commit252a3bb5ca9c5615e7f6e8e0ebc2f9beabe8af53 (patch)
tree084c67f7a3d95e8e0d39e2a9702bb549c15181cd
parentfbb709bc08fb999760b94adfa1bcbc956532a4e2 (diff)
parent0b45897f5d43ddb024c581cd232769f9c8d3a697 (diff)
Merge "Record touch point when starting call from CallDetailActivity" into ub-contactsdialer-a-dev
-rw-r--r--src/com/android/dialer/CallDetailActivity.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java
index 72a50127e..d95b55ecb 100644
--- a/src/com/android/dialer/CallDetailActivity.java
+++ b/src/com/android/dialer/CallDetailActivity.java
@@ -31,6 +31,7 @@ import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
+import android.view.MotionEvent;
import android.view.View;
import android.widget.ListView;
import android.widget.QuickContactBadge;
@@ -39,6 +40,7 @@ import android.widget.Toast;
import com.android.contacts.common.ContactPhotoManager;
import com.android.contacts.common.ContactPhotoManager.DefaultImageRequest;
+import com.android.contacts.common.interactions.TouchPointManager;
import com.android.contacts.common.GeoUtil;
import com.android.contacts.common.CallUtil;
import com.android.contacts.common.util.UriUtils;
@@ -262,6 +264,14 @@ public class CallDetailActivity extends AppCompatActivity
getCallDetails();
}
+ @Override
+ public boolean dispatchTouchEvent(MotionEvent ev) {
+ if (ev.getAction() == MotionEvent.ACTION_DOWN) {
+ TouchPointManager.getInstance().setPoint((int) ev.getRawX(), (int) ev.getRawY());
+ }
+ return super.dispatchTouchEvent(ev);
+ }
+
public void getCallDetails() {
CallLogAsyncTaskUtil.getCallDetails(this, getCallLogEntryUris(), mCallLogAsyncTaskListener);
}