Fix appbar photos view when enter in background

Signed-off-by: Joris Bodin <joris.bodin@infomaniak.com>
This commit is contained in:
Joris Bodin 2020-06-12 16:27:59 +02:00 committed by tobiasKaminsky
parent 228a44fc87
commit 7f1ba75b7d
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -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()) {