Created
October 15, 2023 05:27
-
-
Save t4kemyh4nd/f91f4cbffc3b1da317eeb369bb50f63a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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