Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit Profile back button handled #162

Merged
merged 1 commit into from
Jun 10, 2019
Merged

Edit Profile back button handled #162

merged 1 commit into from
Jun 10, 2019

Conversation

oindrilabhadra78
Copy link
Collaborator

Fixes #151

Changes: Alert dialog box appears on back button press

Screenshots for the change:

WhatsApp Image 2019-06-10 at 16 21 37

if (event.getAction() == KeyEvent.ACTION_DOWN) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
AlertDialog.Builder alert = new AlertDialog.Builder(getActivity());
alert.setMessage("Do you want to exit without saving changes?").setCancelable(false)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use string values.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@atm1504 I will create another issue and replace with string values here as well as in other appropriate places.

@atm1504 atm1504 merged commit efd1cf4 into development Jun 10, 2019
@atm1504 atm1504 deleted the back-press branch June 10, 2019 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle back button press in edit profile fragment
2 participants