Address bundleOf deprecation (mihonapp/mihon#3073)

(cherry picked from commit 33faa5a3562016a53d94b02aed69d95b10af5fc5)
This commit is contained in:
MajorTanya 2026-03-18 07:56:10 +01:00 committed by Cuong-Tran
parent 06107dba9b
commit 0f556ea9b5

View file

@ -16,7 +16,6 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.viewinterop.AndroidView
import androidx.core.os.bundleOf
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.FragmentContainerView
import androidx.fragment.app.FragmentManager
@ -182,7 +181,9 @@ class SourcePreferencesFragment : PreferenceFragmentCompat() {
fun getInstance(sourceId: Long): SourcePreferencesFragment {
return SourcePreferencesFragment().apply {
arguments = bundleOf(SOURCE_ID to sourceId)
arguments = Bundle().apply {
putLong(SOURCE_ID, sourceId)
}
}
}
}