Package ai.nexconn.chatui.widget
Class NoLeakDialog
-
- All Implemented Interfaces:
-
android.content.DialogInterface,android.view.KeyEvent.Callback,android.view.View.OnCreateContextMenuListener,android.view.Window.Callback
public class NoLeakDialog extends DialogFix for DialogFragment memory leak bug
-
-
Field Summary
Fields Modifier and Type Field Description public final static intBUTTON1public final static intBUTTON2public final static intBUTTON3public final static intBUTTON_NEGATIVEpublic final static intBUTTON_NEUTRALpublic final static intBUTTON_POSITIVE
-
Constructor Summary
Constructors Constructor Description NoLeakDialog(Context context)NoLeakDialog(Context context, int themeResId)NoLeakDialog(Context context, boolean cancelable, DialogInterface.OnCancelListener cancelListener)
-
Method Summary
Modifier and Type Method Description voidsetOnCancelListener(@Nullable() DialogInterface.OnCancelListener listener)voidsetOnShowListener(@Nullable() DialogInterface.OnShowListener listener)voidsetOnDismissListener(@Nullable() DialogInterface.OnDismissListener listener)-
Methods inherited from class android.app.Dialog
addContentView, cancel, closeOptionsMenu, create, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOnBackInvokedDispatcher, getOwnerActivity, getSearchEvent, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onStart, onStop, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, requireViewById, setCancelMessage, setCancelable, setCanceledOnTouchOutside, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnKeyListener, setOwnerActivity, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenu -
Methods inherited from class android.view.Window.Callback
onPointerCaptureChanged, onProvideKeyboardShortcuts -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setOnCancelListener
void setOnCancelListener(@Nullable() DialogInterface.OnCancelListener listener)
-
setOnShowListener
void setOnShowListener(@Nullable() DialogInterface.OnShowListener listener)
-
setOnDismissListener
void setOnDismissListener(@Nullable() DialogInterface.OnDismissListener listener)
-
-
-
-