All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.taig.android.app.dialog.Dialog.scala Maven / Gradle / Ivy

There is a newer version: 0.8.2
Show newest version
package io.taig.android.app.dialog

import android.os.Bundle
import io.taig.android.app.fragment.Fragment

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()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy