summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Ng <ngmatthew@google.com>2018-06-28 14:23:32 -0700
committerMatthew Ng <ngmatthew@google.com>2018-07-03 15:25:31 +0000
commit87555c56dc464186219538c2b530bd275f8a8d1d (patch)
tree92cbd20abbc89d03f9bfdc9ebe42a3e9c10f0ed6
parent7f920b8d5ed41375641cc991a037499443dc9098 (diff)
downloadandroid_packages_apps_Trebuchet-87555c56dc464186219538c2b530bd275f8a8d1d.tar.gz
android_packages_apps_Trebuchet-87555c56dc464186219538c2b530bd275f8a8d1d.tar.bz2
android_packages_apps_Trebuchet-87555c56dc464186219538c2b530bd275f8a8d1d.zip
Fixed small line that may appear opening task menu with decimal position
Round the y and x values to get correct position without showing a small line when opening the task menu. Test: increase the display and font size to large, go to overview and tap icon Fixes: 110415497 Change-Id: Ia41378863fb08fc72f5cd14b40f45769ab612d22
-rw-r--r--quickstep/src/com/android/quickstep/views/TaskMenuView.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/quickstep/src/com/android/quickstep/views/TaskMenuView.java b/quickstep/src/com/android/quickstep/views/TaskMenuView.java
index 6eb685479..098349a7b 100644
--- a/quickstep/src/com/android/quickstep/views/TaskMenuView.java
+++ b/quickstep/src/com/android/quickstep/views/TaskMenuView.java
@@ -175,9 +175,9 @@ public class TaskMenuView extends AbstractFloatingView {
params.width = sTempRect.width();
params.gravity = Gravity.LEFT;
setLayoutParams(params);
- setX(sTempRect.left - insets.left);
- setY(sTempRect.top + getResources().getDimension(R.dimen.task_thumbnail_top_margin)
- - insets.top);
+ setX(Math.round(sTempRect.left - insets.left));
+ setY(Math.round(sTempRect.top - insets.top
+ + getResources().getDimension(R.dimen.task_thumbnail_top_margin)));
}
private void animateOpen() {