Fixed multi pane subtitle

pull/147/head
M66B 6 years ago
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…
Cancel
Save