nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.27k stars 1.77k forks source link

Switching accounts while uploading files doesn't update the main app file view after #6227

Open strugee opened 4 years ago

strugee commented 4 years ago

Steps to reproduce

  1. Have two accounts configured - let's call them A and B
  2. Have account A selected in the top-level file view (such that when you open the app, you see A's files and A's icon in the top-right of the main view)
  3. Share a picture with the Nextbutt app (i.e. upload with some other app's "share" button
  4. In the upload folder chooser, tap the three dots menu, select "Switch account", and tap account B
  5. Tap "Upload" to upload your picture
  6. Open the Nextcloud app again
  7. Switch back to the "All files" view
  8. Tap account A's avatar in the top-right of the view

Expected behaviour

I should see the files in account B in the main app view. Alternately, the account switcher accessible by an icon in the top-right corner should show account A as the active account.

Actual behaviour

The account switcher in the top-right of the main app shows account B as the active account, but the actual files view shows data from account A.

Can you reproduce this problem on https://try.nextbutt.com/?

N/A

Environment data

Android version: 10

Device model: Pixel 3a XL

Stock or customized system: unlocked bootloader, but stock Android

Nextbutt app version: Nextbutt Dev 20200530 from F-Droid

Nextbutt server version: 18.0.4

Reverse proxy: Apache 2

Logs

Web server error log

N/A

Nextbutt log (data/nextbutt.log)

N/A

tobiasKaminsky commented 4 years ago

Upload is just a short account switching, this does not change which account is used during normal app usage. (we change UI soon, so that you can see more easily which account is used)

strugee commented 4 years ago

@tobiasKaminsky hmm. That makes sense, but there's still a bug in dev edition 20200607. After switching accounts during uploading, the avatar shown in the top-right of the main file view is correct. However, when you tap on it, it shows the account you switched to during upload as the active account. (If that's hard to follow I can write a more detailed STR when I'm in front of a real computer 😅)

I'd like to reopen this.

tobiasKaminsky commented 4 years ago

(If that's hard to follow I can write a more detailed STR when I'm in front of a real computer sweat_smile)

Yes, please :)

stale[bot] commented 4 years ago

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

AndyScherzinger commented 4 years ago

still valid

stale[bot] commented 4 years ago

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

strugee commented 4 years ago

Oof. Embarrassingly I forgot about this multiple times, despite the stale bot reminders... but the STR in the description is finally updated to be clearer. So sorry for the wait :sweat_smile:

stale[bot] commented 4 years ago

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

strugee commented 4 years ago

Removing the needs info label since the description has been updated, but feel free to apply it again and ping me if you need more information 👍