io.taig.android.app.dialog.Dialog.scala Maven / Gradle / Ivy
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()
}
}