mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 22:03:55 +01:00
add cancel button (#6078)
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
This commit is contained in:
parent
dec56a3342
commit
a6444968fa
16 changed files with 67 additions and 24 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue