amahi / android

Amahi Android App
GNU General Public License v3.0
164 stars 279 forks source link

Inform User to Select a Server Before Selecting a Share in Settings #726

Closed Prakhar-Agarwal-byte closed 3 years ago

Prakhar-Agarwal-byte commented 3 years ago

Describe the issue

Currently, in auto-upload photos settings when a user selects a share before selecting a server, nothing happens and the user can't figure out what the problem is as there is no info message present. To solve this issue we can present the user with a Snackbar whenever this situation arises so that the user can know to select a server first.

To Reproduce or Feature details Steps to reproduce the behavior:

  1. Go to Settings
  2. Click on Auto upload photos
  3. Select a share before selecting any server.
  4. See that nothing happens and no info message is present.

Current behavior Nothing happens and no info message present.

https://user-images.githubusercontent.com/17739006/104148481-71224c00-53f8-11eb-813c-e4ce2a82c178.mp4

Expected behavior A Snackbar saying "No server is selected" shows up to indicate the user to select a server first.

https://user-images.githubusercontent.com/17739006/104148484-75e70000-53f8-11eb-9a62-cc45d99550fd.mp4

Smartphone (please complete as much of the following information as possible):