Skip to content

Instantly share code, notes, and snippets.

@t4kemyh4nd
Created October 15, 2023 05:27
Show Gist options
  • Save t4kemyh4nd/f91f4cbffc3b1da317eeb369bb50f63a to your computer and use it in GitHub Desktop.
Save t4kemyh4nd/f91f4cbffc3b1da317eeb369bb50f63a to your computer and use it in GitHub Desktop.
@Override
public void onClick(PropertyModel model, int buttonType) {
int dismissalCause = DialogDismissalCause.NEGATIVE_BUTTON_CLICKED;
if (buttonType == ModalDialogProperties.ButtonType.POSITIVE) {
mDelegate.onAddToHomescreen(mShortcutTitleInput.getText().toString());
dismissalCause = DialogDismissalCause.POSITIVE_BUTTON_CLICKED;
}
mModalDialogManager.dismissDialog(mDialogModel, dismissalCause);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment