Enable toolbar title visibility when setting a new one
This commit is contained in:
parent
a5b7666188
commit
38a0395d45
|
@ -107,6 +107,7 @@ public abstract class BaseFragment extends Fragment {
|
||||||
if (DEBUG) Log.d(TAG, "setTitle() called with: title = [" + title + "]");
|
if (DEBUG) Log.d(TAG, "setTitle() called with: title = [" + title + "]");
|
||||||
if((!useAsFrontPage || mIsVisibleToUser)
|
if((!useAsFrontPage || mIsVisibleToUser)
|
||||||
&& (activity != null && activity.getSupportActionBar() != null)) {
|
&& (activity != null && activity.getSupportActionBar() != null)) {
|
||||||
|
activity.getSupportActionBar().setDisplayShowTitleEnabled(true);
|
||||||
activity.getSupportActionBar().setTitle(title);
|
activity.getSupportActionBar().setTitle(title);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue