Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

DialogFragment doesn't show title by default #541

Closed
Ereza opened this issue Jul 15, 2013 · 2 comments
Closed

DialogFragment doesn't show title by default #541

Ereza opened this issue Jul 15, 2013 · 2 comments

Comments

@Ereza
Copy link

Ereza commented Jul 15, 2013

Hi, I am subclassing DialogFragment and the dialog title is hidden on pre-ICS (ICS and above are OK). My workaround is to override onCreateDialog with the following:

    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        setDialogType(DialogType.AlertDialog); //To workaround bug which shows no title
        return super.onCreateDialog(savedInstanceState);
    }

The title is correctly shown if I use the original classes, so I assume it's a bug in HoloEverywhere.

If I can provide any more info please let me know. Thanks!

@Prototik
Copy link
Owner

HE doesn't provide a dialog layout on pre-HC. Maybe in next release...

@Ereza
Copy link
Author

Ereza commented Jul 17, 2013

Wow... I am amazed to read that statement. I thought it was a bug. Well then, thanks for the response, I'll stick to my workaround for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants