diff --git a/app/src/main/java/app/pachli/components/instancemute/InstanceListActivity.kt b/app/src/main/java/app/pachli/components/instancemute/InstanceListActivity.kt index 75844963b..12f7ac6f6 100644 --- a/app/src/main/java/app/pachli/components/instancemute/InstanceListActivity.kt +++ b/app/src/main/java/app/pachli/components/instancemute/InstanceListActivity.kt @@ -1,6 +1,7 @@ package app.pachli.components.instancemute import android.os.Bundle +import androidx.fragment.app.commit import app.pachli.R import app.pachli.components.instancemute.fragment.InstanceListFragment import app.pachli.core.activity.BaseActivity @@ -21,9 +22,8 @@ class InstanceListActivity : BaseActivity() { setDisplayShowHomeEnabled(true) } - supportFragmentManager - .beginTransaction() - .replace(R.id.fragment_container, InstanceListFragment()) - .commit() + supportFragmentManager.commit { + replace(R.id.fragment_container, InstanceListFragment()) + } } }