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

Incorrect message and delete your favorite folder (file) from the folder "On device" #3714

Closed
Valdnet opened this issue Mar 6, 2019 · 11 comments

Comments

@Valdnet
Copy link
Contributor

Valdnet commented Mar 6, 2019

1. For a folder - "On device".

obraz
obraz

Actual behaviour

  • Erroneous question when deleting a folder.

obraz
obraz

Expected behaviour

  • The correct question when removing the folder.

obraz
obraz

Steps to reproduce

  1. Create a folder.
  2. Mark the folder as a favorite.
  3. Save to device.
  4. Open from the menu "On device".
  5. Delete your favorite folder.

2. For a file - "On device".

obraz
obraz

Actual behaviour

  • Erroneous question when deleting a file.

obraz
obraz

Expected behaviour

  • The correct question when removing the file.

obraz
obraz

Steps to reproduce

  1. Create a file.
  2. Mark the file as a favorite.
  3. Save to device.
  4. Open from the menu "On device".
  5. Delete your favorite file.

Environment data

Android version: 6
Nextcloud app version: daily dev 20190306 commit: 7e1424a
Nextcloud server version: 15.0.4

@Valdnet Valdnet added the bug label Mar 6, 2019
@nextcloud-android-bot
Copy link
Collaborator

GitMate.io thinks possibly related issues are #2281 ([Deleted]), #687 (Favorites), #3534 (Watch folders for deleted files and delete from Nextcloud), #2382 (Delete multiple files), and #3212 (Crash when loading "Deleted files").

@tobiasKaminsky
Copy link
Member

Can you translate the dialogs so that we can understand what the problem is?

@Valdnet
Copy link
Contributor Author

Valdnet commented Mar 6, 2019

@tobiasKaminsky i translated the dialogs.

@tobiasKaminsky
Copy link
Member

This was done on purpose:

  • if you are "on device" you only shall delete files/folders "on device"
  • if you are on "all files" you can decide whether to delete files/folders only on device or both.

@Valdnet
Copy link
Contributor Author

Valdnet commented Mar 8, 2019

The error applies only to the favorite folder or file that is on "On device".

obraz

The following question arises:

obraz
obraz

When confirming the deletion, the file is removed from the device and from the main folder.

The question should be a choice from which location to delete.

obraz

Please, analyze again "Steps to reproduce" 😉

@Valdnet
Copy link
Contributor Author

Valdnet commented Mar 11, 2019

@tobiasKaminsky if you confirm the error, please re-open issues 😉

@tobiasKaminsky
Copy link
Member

Now I understand.
Thank you for finding & reporting this bug!

@tobiasKaminsky
Copy link
Member

Reference: #2718

@AndyScherzinger I am not quite sure about this long issue (#2718), but somwhere it is stated that remove should work the same on "on device" and "all files".

For some reason this was included:

int localRemoveButton = (!containsFavorite && (containsFolder || containsDown)) ?
R.string.confirmation_remove_local :
-1;

--> I would simply kill this: so you can delete everything if you want and always get the choice "yes, no, only local".

@tobiasKaminsky
Copy link
Member

To check:

  • create a f1/f2/2.txt
  • download this file
  • go to on device
  • delete f1
  • should offer "only local", which then removes f1 locally recursive

@AndyScherzinger
Copy link
Member

--> I would simply kill this: so you can delete everything if you want and always get the choice "yes, no, only local".

@tobiasKaminsky agreed, I'd also vote for always having all options when it comes to "delete"

@AndyScherzinger
Copy link
Member

ships with v3.6.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants