mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1307779 - Only start long-press timer for back button r=sebastian
Huge oversight in my original patch. Pressing any hardware button will result in the history list being shown after the long-press delay (regardless of long-pressing). MozReview-Commit-ID: KO8u0NzTxaO --HG-- extra : rebase_source : 6f6932c4f35b9e580a84a2d68a7688abe4da79de
This commit is contained in:
parent
974f731a59
commit
8001b5d314
@ -570,7 +570,8 @@ public class BrowserApp extends GeckoApp
|
||||
// - For short presses, we cancel the callback in onKeyUp
|
||||
// - For long presses, the normal keypress is marked as cancelled, hence won't be handled elsewhere
|
||||
// (but Android still provides the haptic feedback), and the runnable is run.
|
||||
if (!Versions.preN) {
|
||||
if (!Versions.preN &&
|
||||
keyCode == KeyEvent.KEYCODE_BACK) {
|
||||
ThreadUtils.getUiHandler().removeCallbacks(mCheckLongPress);
|
||||
ThreadUtils.getUiHandler().postDelayed(mCheckLongPress, ViewConfiguration.getLongPressTimeout());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user