mirror of https://github.com/M66B/FairEmail.git
Fixed multi pane subtitle
This commit is contained in:
parent
cf185bb744
commit
8f6f70b0b7
|
@ -1352,6 +1352,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
else {
|
||||
pane = R.id.content_pane;
|
||||
grpPane.setVisibility(View.VISIBLE);
|
||||
args.putBoolean("pane", true);
|
||||
}
|
||||
|
||||
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
|
||||
|
|
|
@ -121,7 +121,8 @@ public class FragmentEx extends Fragment {
|
|||
|
||||
private void updateSubtitle() {
|
||||
AppCompatActivity activity = (AppCompatActivity) getActivity();
|
||||
if (activity != null) {
|
||||
Bundle args = getArguments();
|
||||
if (activity != null && (args == null || !args.getBoolean("pane"))) {
|
||||
ActionBar actionbar = activity.getSupportActionBar();
|
||||
if (actionbar != null)
|
||||
actionbar.setSubtitle(subtitle);
|
||||
|
|
Loading…
Reference in New Issue