Android: Navigation Drawer navigation not working when navigating from other activities -> FileDisplayActivity related items.

Created on 30 Jul 2018  路  8Comments  路  Source: nextcloud/android

Actual behaviour

  • Once we click activities and then attempt to navigate to other parts of the app from the navigation drawer nothing happens. One have to navigate back to all files then only its possible to goto links like photos, fav or shared.

Expected behaviour

  • All the links should be accessable from anywhere in the app.

Steps to reproduce

  1. Navigate to activity in the mobile app
  2. Click photos in the menu
  3. Photos tab in the menu does not open.

Environment data

Android version: v7

Device model: Xiaomi mi5 and redmi note 3

Stock or customized system: MIUI

Nextcloud app version: latest

Nextcloud server version: latest

Logs

Web server error log

Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here

NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate

approved bug dependencies high pr exists

Most helpful comment

I can reproduce this as well. Just to confirm:

  1. Open Activities activity
  2. Attempt to navigate to Photo's activity.
  3. The Photo's activity does not start.

Certain activities start just fine ("All Files", "On Device", etc) while other's do not. I'll investigate this asap. I'll assign this issue to me for now.

All 8 comments

Thanks for reporting this @eryogeshsingh

@tobiasKaminsky @mario @ardevd I can reproduce this, so labeling the bug as approved

I can reproduce this as well. Just to confirm:

  1. Open Activities activity
  2. Attempt to navigate to Photo's activity.
  3. The Photo's activity does not start.

Certain activities start just fine ("All Files", "On Device", etc) while other's do not. I'll investigate this asap. I'll assign this issue to me for now.

Thanks @ardevd :1st_place_medal:

The issue is not specific to the Activities activity either though. It affects most of the others as well.

  1. Open the Uploads activity
  2. Attempt to navigate to Photos
  3. Nothing happens.

It seems to affect all the navigation drawer menu items associated with an EventBus message instead of an activity start. I'll see if I can find a fix.

Thanks @ardevd :+1: Maybe @mario has some hints or insights on this matter :)

@AndyScherzinger Thanks, I'll bring it up with him.

The way I see it is that the current way we use EventBus messages to control fragments in the FileDisplayActivity class is breaking in-app navigation. Not sure there's an easy fix for this but I'm hoping I'm wrong.

Consulted with @ardevd.

I've updated the title to make it slightly more precise but it's hard to nail it down in one sentence. Feel free to improve :)

EDIT: I'll also remove the assignment for now since this seems like it might potentially require some serious refactoring to get right. I'll keep on looking for a good and elegant solution though.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tobiasKaminsky picture tobiasKaminsky  路  3Comments

markbryanduncan picture markbryanduncan  路  3Comments

toobie83 picture toobie83  路  3Comments

eppfel picture eppfel  路  3Comments

AndyScherzinger picture AndyScherzinger  路  3Comments