owncloud / android

:phone: The ownCloud Android App
GNU General Public License v2.0
3.76k stars 3.09k forks source link

[BUG] Removing local copy of non-previewable file leads to empty view #4428

Open jesmrec opened 1 week ago

jesmrec commented 1 week ago

Steps to reproduce

  1. Click on a non-previewable** file (like an office file) -> downloaded in Details view
  2. In Details view, click on three-dot-button and Remove
  3. Select Local only

Actual behaviour

empty view like:

https://github.com/owncloud/android/assets/14894746/75b88328-0be4-4228-ac0d-353be6ffc7bc

Expected behaviour

behaviour when a previewable file is deleted, move back to the list of files:

https://github.com/owncloud/android/assets/14894746/2f74023a-b5a4-4174-866e-cc2437f7cc4c

** after some testing, i guess that the difference comes from the previewability of the file, but i can not assure it at all