mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Fix appbar photos view when enter in background
Signed-off-by: Joris Bodin <joris.bodin@infomaniak.com>
This commit is contained in:
parent
228a44fc87
commit
7f1ba75b7d
1 changed files with 2 additions and 1 deletions
|
@ -218,6 +218,7 @@ public class FileDisplayActivity extends FileActivity
|
|||
private SearchView searchView;
|
||||
private PlayerServiceConnection mPlayerConnection;
|
||||
private Account mLastDisplayedAccount;
|
||||
private int menuItemId = -1;
|
||||
|
||||
@Inject
|
||||
AppPreferences preferences;
|
||||
|
@ -1185,7 +1186,7 @@ public class FileDisplayActivity extends FileActivity
|
|||
registerReceiver(mDownloadFinishReceiver, downloadIntentFilter);
|
||||
|
||||
// setup drawer
|
||||
int menuItemId = getIntent().getIntExtra(FileDisplayActivity.DRAWER_MENU_ID, -1);
|
||||
menuItemId = getIntent().getIntExtra(FileDisplayActivity.DRAWER_MENU_ID, menuItemId);
|
||||
|
||||
if (menuItemId == -1) {
|
||||
if (MainApp.isOnlyOnDevice()) {
|
||||
|
|
Loading…
Reference in a new issue