From 0b45897f5d43ddb024c581cd232769f9c8d3a697 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 18 Sep 2015 12:55:30 -0700 Subject: Record touch point when starting call from CallDetailActivity Change-Id: Ib506072a22e9ac84ff866c0afee3fb22c8def640 --- src/com/android/dialer/CallDetailActivity.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/com/android/dialer') 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); } -- cgit v1.2.3