diff options
author | Yorke Lee <yorkelee@google.com> | 2015-09-18 12:55:30 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-09-18 12:55:30 -0700 |
commit | 0b45897f5d43ddb024c581cd232769f9c8d3a697 (patch) | |
tree | 8341c207d68cc0c758d9ed6a006aa0cb0bad2681 /src/com/android/dialer/CallDetailActivity.java | |
parent | b2802803d90ff355a04109cc570bf69346d4102a (diff) |
Record touch point when starting call from CallDetailActivity
Change-Id: Ib506072a22e9ac84ff866c0afee3fb22c8def640
Diffstat (limited to 'src/com/android/dialer/CallDetailActivity.java')
-rw-r--r-- | src/com/android/dialer/CallDetailActivity.java | 10 |
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); } |