Skip to content

DIALOG_TITLE argument is without effect on Marshmallow#391

Open
mtotschnig wants to merge 1 commit intoroomorama:masterfrom
mtotschnig:bugfix/dialog_title_on_api_23
Open

DIALOG_TITLE argument is without effect on Marshmallow#391
mtotschnig wants to merge 1 commit intoroomorama:masterfrom
mtotschnig:bugfix/dialog_title_on_api_23

Conversation

@mtotschnig
Copy link

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.

…need to set it otherwise DIALOG_TITLE argument does not work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant