|
@@ -67,7 +67,6 @@ public abstract class ToolbarActivity extends BaseActivity {
|
|
private TextView mInfoBoxMessage;
|
|
private TextView mInfoBoxMessage;
|
|
|
|
|
|
private boolean isHomeSearchToolbarShow = false;
|
|
private boolean isHomeSearchToolbarShow = false;
|
|
- private boolean isUserInfo = false;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
@@ -78,7 +77,7 @@ public abstract class ToolbarActivity extends BaseActivity {
|
|
* Toolbar setup that must be called in implementer's {@link #onCreate} after {@link #setContentView} if they want
|
|
* Toolbar setup that must be called in implementer's {@link #onCreate} after {@link #setContentView} if they want
|
|
* to use the toolbar.
|
|
* to use the toolbar.
|
|
*/
|
|
*/
|
|
- protected void setupToolbar(boolean isUserInfo, boolean isHomeSearchToolbarShow) {
|
|
|
|
|
|
+ protected void setupToolbar(boolean isHomeSearchToolbarShow) {
|
|
int fontColor = ThemeUtils.appBarPrimaryFontColor(this);
|
|
int fontColor = ThemeUtils.appBarPrimaryFontColor(this);
|
|
|
|
|
|
Toolbar toolbar = findViewById(R.id.toolbar);
|
|
Toolbar toolbar = findViewById(R.id.toolbar);
|
|
@@ -92,7 +91,6 @@ public abstract class ToolbarActivity extends BaseActivity {
|
|
mSwitchAccountButton = findViewById(R.id.switch_account_button);
|
|
mSwitchAccountButton = findViewById(R.id.switch_account_button);
|
|
|
|
|
|
this.isHomeSearchToolbarShow = isHomeSearchToolbarShow;
|
|
this.isHomeSearchToolbarShow = isHomeSearchToolbarShow;
|
|
- this.isUserInfo = isUserInfo;
|
|
|
|
updateActionBarTitleAndHomeButton(null);
|
|
updateActionBarTitleAndHomeButton(null);
|
|
|
|
|
|
mInfoBox = findViewById(R.id.info_box);
|
|
mInfoBox = findViewById(R.id.info_box);
|
|
@@ -113,11 +111,7 @@ public abstract class ToolbarActivity extends BaseActivity {
|
|
}
|
|
}
|
|
|
|
|
|
public void setupToolbar() {
|
|
public void setupToolbar() {
|
|
- setupToolbar(false, false);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setupToolbar(boolean homeSearchToolbarShow) {
|
|
|
|
- setupToolbar(false, homeSearchToolbarShow);
|
|
|
|
|
|
+ setupToolbar(false);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -130,7 +124,7 @@ public abstract class ToolbarActivity extends BaseActivity {
|
|
title = isRoot ? ThemeUtils.getDefaultDisplayNameForRootFolder(this) : chosenFile.getFileName();
|
|
title = isRoot ? ThemeUtils.getDefaultDisplayNameForRootFolder(this) : chosenFile.getFileName();
|
|
updateActionBarTitleAndHomeButtonByString(title);
|
|
updateActionBarTitleAndHomeButtonByString(title);
|
|
|
|
|
|
- if (!isUserInfo) {
|
|
|
|
|
|
+ if (mAppBar != null) {
|
|
showHomeSearchToolbar(title, isRoot);
|
|
showHomeSearchToolbar(title, isRoot);
|
|
}
|
|
}
|
|
}
|
|
}
|