roomorama / Caldroid

A better calendar for Android
Other
1.42k stars 532 forks source link

DIALOG_TITLE argument is without effect on Marshmallow #391

Open mtotschnig opened 8 years ago

mtotschnig commented 8 years ago

Problem:

If you try to set a dialog title for a Caldroid dialog with

    CaldroidFragment f = new CaldroidFragment();
    Bundle args = new Bundle();
    args.putString(DIALOG_TITLE, "My dialog title");
    f.setArguments(args);

the title is not shown on Marshmallow devices.

Reason

The default for windowNoTitle is false for Lollipop and below, but true on Marshmallow. Compare with http://stackoverflow.com/a/32711916/1199911

Solution

Set windowNotTitle explicitly to false.