add cancel button (#6078)

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
This commit is contained in:
Parneet Singh 2024-12-29 04:50:32 +05:30 committed by GitHub
parent dec56a3342
commit a6444968fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 67 additions and 24 deletions

View file

@ -128,6 +128,8 @@ class CommonPlaceClickActions
AlertDialog
.Builder(activity)
.setMessage(R.string.login_alert_message)
.setCancelable(false)
.setNegativeButton(R.string.cancel){_,_ -> }
.setPositiveButton(R.string.login) { dialog, which ->
setPositiveButton()
}.show()

View file

@ -1627,6 +1627,8 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
// prompt the user to login
new Builder(getContext())
.setMessage(R.string.login_alert_message)
.setCancelable(false)
.setNegativeButton(R.string.cancel, (dialog, which) -> {})
.setPositiveButton(R.string.login, (dialog, which) -> {
// logout of the app
BaseLogoutListener logoutListener = new BaseLogoutListener(getActivity());