Merge "Fix some taskbar stashing issues" into sc-v2-dev

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2021-08-31 22:38:01 +00:00
commit ff705eabe6
3 files changed
+24 -2

No files matched your search

@@ -409,6 +409,10 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
* Returns true if the touch down at the provided position be ignored
*/
protected boolean shouldIgnoreTouchDown(float x, float y) {
if (mDisplay == DISPLAY_TASKBAR) {
// Allow touching within padding on taskbar, given icon sizes are smaller.
return false;
}
return y < getPaddingTop()
|| x < getPaddingLeft()
|| y > getHeight() - getPaddingBottom()