change: Use supportFragmentManager.commit
This commit is contained in:
parent
286a152fde
commit
6fd993acf6
|
@ -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()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue