-
- All Implemented Interfaces:
-
android.view.Window.Callback
public class FixedWindowCallback implements Window.Callback
A wrapper for Window.Callback that ensures the callback methods are called. This is to fix an issue where the system calls onMenuOpened with a null menu parameter. To track the issue: https://issuetracker.google.com/issues/188568911
-
-
Constructor Summary
Constructors Constructor Description FixedWindowCallback(Window.Callback delegate)
-
Method Summary
-
Methods inherited from class android.view.Window.Callback
dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onContentChanged, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onMenuItemSelected, onMenuOpened, onPanelClosed, onPointerCaptureChanged, onPreparePanel, onProvideKeyboardShortcuts, onSearchRequested, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FixedWindowCallback
FixedWindowCallback(Window.Callback delegate)
-
-
Method Detail
-
dispatchGenericMotionEvent
boolean dispatchGenericMotionEvent(MotionEvent event)
-
dispatchKeyEvent
boolean dispatchKeyEvent(KeyEvent event)
-
dispatchKeyShortcutEvent
boolean dispatchKeyShortcutEvent(KeyEvent event)
-
dispatchPopulateAccessibilityEvent
boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event)
-
dispatchTouchEvent
boolean dispatchTouchEvent(MotionEvent event)
-
dispatchTrackballEvent
boolean dispatchTrackballEvent(MotionEvent event)
-
onActionModeFinished
void onActionModeFinished(ActionMode mode)
-
onActionModeStarted
void onActionModeStarted(ActionMode mode)
-
onAttachedToWindow
void onAttachedToWindow()
-
onContentChanged
void onContentChanged()
-
onCreatePanelMenu
boolean onCreatePanelMenu(int featureId, @Nullable() Menu menu)
-
onCreatePanelView
@Nullable() View onCreatePanelView(int featureId)
-
onDetachedFromWindow
void onDetachedFromWindow()
-
onMenuItemSelected
boolean onMenuItemSelected(int featureId, @Nullable() MenuItem item)
-
onMenuOpened
boolean onMenuOpened(int featureId, @Nullable() Menu menu)
-
onPanelClosed
void onPanelClosed(int featureId, @Nullable() Menu menu)
-
onPointerCaptureChanged
@RequiresApi(api = Build.VERSION_CODES.O) void onPointerCaptureChanged(boolean hasCapture)
-
onPreparePanel
boolean onPreparePanel(int featureId, @Nullable() View view, @Nullable() Menu menu)
-
onProvideKeyboardShortcuts
@RequiresApi(api = Build.VERSION_CODES.N) void onProvideKeyboardShortcuts(List<KeyboardShortcutGroup> data, @Nullable() Menu menu, int deviceId)
-
onSearchRequested
boolean onSearchRequested()
-
onSearchRequested
boolean onSearchRequested(SearchEvent searchEvent)
-
onWindowAttributesChanged
void onWindowAttributesChanged(WindowManager.LayoutParams attrs)
-
onWindowFocusChanged
void onWindowFocusChanged(boolean hasFocus)
-
onWindowStartingActionMode
@Nullable() ActionMode onWindowStartingActionMode(ActionMode.Callback callback)
-
onWindowStartingActionMode
@Nullable() ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type)
-
-
-
-