Add new Window.Callback.dispatchGenericMotionEvent to adapter class
Change-Id: I7571da1d00c22d96f2fb0f9b2e8a2c84a9344c81
This commit is contained in:
parent
d13b49d1a4
commit
03886cf96a
1 changed files with 7 additions and 0 deletions
|
@ -34,6 +34,13 @@ public class WindowCallbackAdapter implements Window.Callback {
|
||||||
mPreviousCallback = previousCallback;
|
mPreviousCallback = previousCallback;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean dispatchGenericMotionEvent(MotionEvent event) {
|
||||||
|
if (mPreviousCallback != null)
|
||||||
|
return mPreviousCallback.dispatchGenericMotionEvent(event);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean dispatchKeyEvent(KeyEvent event) {
|
public boolean dispatchKeyEvent(KeyEvent event) {
|
||||||
if (mPreviousCallback != null)
|
if (mPreviousCallback != null)
|
||||||
|
|
Loading…
Reference in a new issue