Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Back press issue - not able to move back using android hardware back button. #265

Open
virendragupta30 opened this issue Feb 19, 2016 · 0 comments

Comments

@virendragupta30
Copy link

Hi..
Thanks for providing nice library.
I am using https://github.com/lucasr/twoway-view/tree/twowayview-0-1.
So because of onKeyDown, onKeyMultiple, onKeyUp event not able to move back. first we need to click somewhere in screen then only able to move back. so reason in overridden method onKeyDown, onKeyMultiple, onKeyUp in TwoWayView.java. If we comment these methods then working fine.
So please explain me why we meed to override onKeyDown, onKeyMultiple, onKeyUp which disturb android default behavior.
So next release please remove below method -
@OverRide
public boolean onKeyDown(int keyCode, KeyEvent event) {
return handleKeyEvent(keyCode, 1, event);
}

@Override
public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) {
    return handleKeyEvent(keyCode, repeatCount, event);
}

@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
    return handleKeyEvent(keyCode, 1, event);
}

This is on TwoWayView.java line no. 1766 to 1779.

Please reply as soon as possible.

Thanks
Virendra

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant