android icon indicating copy to clipboard operation
android copied to clipboard

[BUG] Wrong navigation when adding new account

Open JuancaG05 opened this issue 1 year ago • 3 comments

Actual behaviour

When adding a new account in a device where we already have at least one account, coming back to the file list keeps showing the files from the previous account, although the Manage accounts screen and the top bar indicates we are in the new one. To solve this, currently we need to switch to the previous account and go again to the new one, which is very annoying.

Expected behaviour

When adding a new account and going back to the file list, the files shown should be the ones from the new account.

Steps to reproduce

  1. Add at least one account to the ownCloud app
  2. Add another account
  3. When added, you can see that the file list is the one from the previous account
  4. (Optional) If you want to see the correct file list, you need to switch to the previous account and go again to the new one

In the next video these 4 steps are shown:

https://github.com/owncloud/android/assets/57049315/814403e6-1771-4785-9b0c-c2924845310f

Can this problem be reproduced with the official owncloud server? (url: https://demo.owncloud.org, user: test, password: test) Yes, it's a problem on the app side so the server is not involved here.

Environment data

Android version: 9

Device model: Samsung Galaxy S9

Stock or customized system: Stock

ownCloud app version: 4.2-beta.1 (3cce58d)

ownCloud server version: no matter

JuancaG05 avatar Jan 31 '24 09:01 JuancaG05

@JuancaG05 This bug is not reproducing now ?

v-a14 avatar Feb 15 '24 15:02 v-a14

Hi @v-a14! Yes, I just tested and it keeps reproducing. If you detected it's not always reproducible, then this can be related to a race condition that only happens in certain situations, but we should solve it for every case. Do you dare to take a look at it? 🚀

JuancaG05 avatar Feb 16 '24 07:02 JuancaG05

Needs to check if it is fixed. If it is, ready to close.

jesmrec avatar Jun 28 '24 10:06 jesmrec

The new "Manage Account" menu in a dialog is preventing this bad effect. When adding new accounts, the current list of files is the one corresponding the recently attached account.

It is fixed.

Closing, feel free to reopen if you are able to reproduce again.

jesmrec avatar Jul 18 '24 11:07 jesmrec