Search in sources :

Example 1 with FormDialogFragment

use of com.skocken.presentation.sample.fragment.FormDialogFragment in project Presentation by StanKocken.

the class FormPresenter method onClickGoFormDialogFragment.

@Override
public void onClickGoFormDialogFragment() {
    Activity activity = getActivity();
    if (activity instanceof FragmentActivity) {
        FragmentManager fragmentManager = ((FragmentActivity) activity).getSupportFragmentManager();
        new FormDialogFragment().show(fragmentManager, "");
    }
}
Also used : FragmentManager(androidx.fragment.app.FragmentManager) FormDialogFragment(com.skocken.presentation.sample.fragment.FormDialogFragment) FormWithFragmentActivity(com.skocken.presentation.sample.activity.FormWithFragmentActivity) FragmentActivity(androidx.fragment.app.FragmentActivity) FormActivity(com.skocken.presentation.sample.activity.FormActivity) FormWithFragmentActivity(com.skocken.presentation.sample.activity.FormWithFragmentActivity) Activity(android.app.Activity) FragmentActivity(androidx.fragment.app.FragmentActivity)

Aggregations

Activity (android.app.Activity)1 FragmentActivity (androidx.fragment.app.FragmentActivity)1 FragmentManager (androidx.fragment.app.FragmentManager)1 FormActivity (com.skocken.presentation.sample.activity.FormActivity)1 FormWithFragmentActivity (com.skocken.presentation.sample.activity.FormWithFragmentActivity)1 FormDialogFragment (com.skocken.presentation.sample.fragment.FormDialogFragment)1