mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
- show correct drawer icon
- do not start preferences on "back" Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
f689a75d3a
commit
403b7024da
1 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue