Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Add edit check to the edit activities #186

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

EGOR-IND
Copy link

@EGOR-IND EGOR-IND commented Apr 21, 2021

Fixes #FINCN-315

WhatsApp.Video.2021-04-22.at.02.51.18.mp4

Added the edit check before making an update request from the edit activities.

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Apply the AndroidStyle.xml style template to your code in Android Studio.

  • Run the unit tests with ./gradlew check to make sure you didn't break anything.

  • If you have multiple commits please combine them into one commit by squashing them.

Comment on lines +416 to +420
<string name="customer_edit_check_msg">Information not edited for the customer %1$s</string>
<string name="group_edit_check_msg">Information not edited for the group %1$s</string>
<string name="payroll_edit_check_msg">Information not edited for the payroll with customer identifier %1$s</string>
<string name="identification_edit_check_msg">Information not edited for the identification type %1$s</string>

Choose a reason for hiding this comment

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

@EGOR-IND Its good to check if user has changed so that unnecessary operations are not performed. But it would suggest that its ok if you dont notify user that he/she has not changed info as user would know it. Instead if user changed info save and exit and if not do quiet exit. What do you say are toasts mandatory?

Copy link
Author

Choose a reason for hiding this comment

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

See I think toasts are good, I don't see any harm in that, it's just a simple indicatiin that they haven't change anything, I can add a dialog if you find snackbar inconvenient, the dialog can have an exit and cancel button, user can exit if they don't want any changes or they can simply press cancel and get back to the edit section. What do you think?

Choose a reason for hiding this comment

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

I dont find toast bad but as you suggested it is better to confirm and save change if user edited or else it should show something like "You didn't change any data. Are you sure you want to exit?". It be probably better that this toast.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants