<commit_before>package io.taig.android.content

import android.app
import android.os.Bundle

trait Dialog
        extends android.app.DialogFragment
        with Fragment {
    override final def onCreateDialog( state: Bundle ) = {
        super.onCreateDialog( state )

        onCreateDialog( Option( state ) )
    }

    def onCreateDialog( state: Option[Bundle] ): app.Dialog = new app.Dialog( getActivity, getTheme )
}<commit_msg>Add dialog disappears hotfix<commit_after>package io.taig.android.content

import android.os.Bundle

trait Dialog
        extends android.app.DialogFragment
        with Fragment {
    override final def onCreateDialog( state: Bundle ) = onCreateDialog( Option( state ) )

    def onCreateDialog( state: Option[Bundle] ): android.app.Dialog = new android.app.Dialog( getActivity, getTheme )

    override def onDestroyView() = {
        if ( getDialog != null && getRetainInstance ) {
            getDialog.setDismissMessage( null )
        }

        super.onDestroyView()
    }
}
{'fraction_non_alphanumeric': 0.08956692913385826, 'fraction_numerical': 0.0, 'mean_word_length': 3.100806451612903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5895173', 'n_tokens_mistral': 285, 'n_tokens_neox': 272, 'n_words': 73}