From 6fd993acf631266d64dcf9d6f0c9bdf4d0045c55 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 30 Apr 2024 16:05:01 +0200 Subject: [PATCH] change: Use supportFragmentManager.commit --- .../components/instancemute/InstanceListActivity.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()) + } } }