1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-25 13:52:08 +01:00

Do not attempt to load stream when there is no registered account

This commit is contained in:
vanitasvitae 2016-11-10 14:24:31 +01:00
parent 00e238a028
commit b8476aa107
Signed by: vanitasvitae
GPG key ID: DCCFB3302C9E4615

View file

@ -421,7 +421,7 @@ public class MainActivity extends ThemedActivity
@OnClick(R.id.main__topbar) @OnClick(R.id.main__topbar)
public void onToolBarClicked(View view) { public void onToolBarClicked(View view) {
AppLog.i(this, "onToolBarClicked()"); AppLog.i(this, "onToolBarClicked()");
if(appSettings.isTopbarStreamShortcutEnabled()) { if(appSettings.isTopbarStreamShortcutEnabled() && appSettings.hasPod()) {
onNavigationItemSelected(navView.getMenu().findItem(R.id.nav_stream)); onNavigationItemSelected(navView.getMenu().findItem(R.id.nav_stream));
} }
} }