change: Use supportFragmentManager.commit

This commit is contained in:
Nik Clayton 2024-04-30 16:05:01 +02:00
parent 286a152fde
commit 6fd993acf6
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,7 @@
package app.pachli.components.instancemute package app.pachli.components.instancemute
import android.os.Bundle import android.os.Bundle
import androidx.fragment.app.commit
import app.pachli.R import app.pachli.R
import app.pachli.components.instancemute.fragment.InstanceListFragment import app.pachli.components.instancemute.fragment.InstanceListFragment
import app.pachli.core.activity.BaseActivity import app.pachli.core.activity.BaseActivity
@ -21,9 +22,8 @@ class InstanceListActivity : BaseActivity() {
setDisplayShowHomeEnabled(true) setDisplayShowHomeEnabled(true)
} }
supportFragmentManager supportFragmentManager.commit {
.beginTransaction() replace(R.id.fragment_container, InstanceListFragment())
.replace(R.id.fragment_container, InstanceListFragment()) }
.commit()
} }
} }