fixed double-click resizing not working when drag resizing is disabled
This commit is contained in:
parent
d2d3675ebe
commit
174bd97e1d
1 changed files with 5 additions and 3 deletions
|
|
@ -437,7 +437,7 @@ public class SuggestionsBar {
|
||||||
|
|
||||||
|
|
||||||
private boolean onTouch(View v, MotionEvent event) {
|
private boolean onTouch(View v, MotionEvent event) {
|
||||||
if (!isEmpty() || !settings.getDragResize()) {
|
if (!isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -448,13 +448,15 @@ public class SuggestionsBar {
|
||||||
mainView.onResizeStart(event.getRawY());
|
mainView.onResizeStart(event.getRawY());
|
||||||
return true;
|
return true;
|
||||||
case MotionEvent.ACTION_MOVE:
|
case MotionEvent.ACTION_MOVE:
|
||||||
mainView.onResizeThrottled(event.getRawY());
|
if (settings.getDragResize()) {
|
||||||
|
mainView.onResizeThrottled(event.getRawY());
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
case MotionEvent.ACTION_UP:
|
case MotionEvent.ACTION_UP:
|
||||||
long now = System.currentTimeMillis();
|
long now = System.currentTimeMillis();
|
||||||
if (now - lastClickTime < SettingsStore.SOFT_KEY_DOUBLE_CLICK_DELAY) {
|
if (now - lastClickTime < SettingsStore.SOFT_KEY_DOUBLE_CLICK_DELAY) {
|
||||||
mainView.onSnap();
|
mainView.onSnap();
|
||||||
} else {
|
} else if (settings.getDragResize()){
|
||||||
mainView.onResize(event.getRawY());
|
mainView.onResize(event.getRawY());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue