Fixed multi pane subtitle

This commit is contained in:
M66B 2018-12-22 12:53:07 +01:00
parent cf185bb744
commit 8f6f70b0b7
2 changed files with 3 additions and 1 deletions

View File

@ -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();

View File

@ -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);