- show correct drawer icon

- do not start preferences on "back"

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2018-06-19 12:00:36 +02:00 committed by AndyScherzinger
parent f689a75d3a
commit 403b7024da
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -97,7 +97,12 @@ public class ExternalSiteWebView extends FileActivity {
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
ThemeUtils.setColoredTitle(actionBar, title, this);
actionBar.setDisplayHomeAsUpEnabled(true);
if (showSidebar) {
actionBar.setDisplayHomeAsUpEnabled(true);
} else {
setDrawerIndicatorEnabled(false);
}
}
// enable zoom
@ -157,8 +162,7 @@ public class ExternalSiteWebView extends FileActivity {
openDrawer();
}
} else {
Intent settingsIntent = new Intent(getApplicationContext(), Preferences.class);
startActivity(settingsIntent);
finish();
}
retval = true;
break;