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

Changing Delete Log SnackBar #2169

Merged
merged 1 commit into from
Jan 18, 2021

Conversation

KushMehta1511
Copy link
Contributor

@KushMehta1511 KushMehta1511 commented Jan 17, 2021

Upon deletion of a logged data, the toast message should show "Log Deleted" but for some devices like Oscilloscope, it is showing "Nothing to delete" upon deletion of a log.

Fixes #2168

Changes: The condition statement written to decide whether the snackbar should show "Log Deleted" or "Nothing to Delete" is not required and directly "Log Deleted" message can be shown as when there is nothing in the log then there is no option for the user to delete a log as the items menu sets "Delete All" menu option visibility to false.

Screenshot/s for the changes:
Before Changes:
image

After changes:
image

Checklist:

  • I have used resources from strings.xml, dimens.xml and colors.xml without hard-coding them
  • No modifications done at the end of resource files strings.xml, dimens.xml or colors.xml
  • I have reformatted code in every file included in this PR [CTRL+ALT+L]
  • My code does not contain any extra lines or extra spaces
  • I have requested reviews from other members

APK for testing:
delete-log-toast.zip

Upon deletion of a logged data, the toast message should show "Log Deleted" but for some devices like Oscilloscope, it is showing "Nothing to delete" upon deletion of a log.
Copy link
Member

@CodeWithSouma CodeWithSouma left a comment

Choose a reason for hiding this comment

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

Looks good to me

@KushMehta1511
Copy link
Contributor Author

@CodeWithSouma Thanks for the review. Please do merge the PR into main.

@CloudyPadmal CloudyPadmal merged commit a9382a4 into fossasia:development Jan 18, 2021
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.

Toast Showing "nothing to delete" upon logged data deletion for some devices
3 participants