Merge pull request #2727 from nextcloud/fixPrivacyExternalView

Wrong behaviour on privacy tab
This commit is contained in:
Andy Scherzinger 2018-06-21 12:39:35 +02:00 committed by GitHub
commit 9575da72fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;