Address bundleOf deprecation (mihonapp/mihon#3073)
(cherry picked from commit 33faa5a3562016a53d94b02aed69d95b10af5fc5)
This commit is contained in:
parent
06107dba9b
commit
0f556ea9b5
1 changed files with 3 additions and 2 deletions
|
|
@ -16,7 +16,6 @@ import androidx.compose.runtime.setValue
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.platform.LocalContext
|
import androidx.compose.ui.platform.LocalContext
|
||||||
import androidx.compose.ui.viewinterop.AndroidView
|
import androidx.compose.ui.viewinterop.AndroidView
|
||||||
import androidx.core.os.bundleOf
|
|
||||||
import androidx.fragment.app.FragmentActivity
|
import androidx.fragment.app.FragmentActivity
|
||||||
import androidx.fragment.app.FragmentContainerView
|
import androidx.fragment.app.FragmentContainerView
|
||||||
import androidx.fragment.app.FragmentManager
|
import androidx.fragment.app.FragmentManager
|
||||||
|
|
@ -182,7 +181,9 @@ class SourcePreferencesFragment : PreferenceFragmentCompat() {
|
||||||
|
|
||||||
fun getInstance(sourceId: Long): SourcePreferencesFragment {
|
fun getInstance(sourceId: Long): SourcePreferencesFragment {
|
||||||
return SourcePreferencesFragment().apply {
|
return SourcePreferencesFragment().apply {
|
||||||
arguments = bundleOf(SOURCE_ID to sourceId)
|
arguments = Bundle().apply {
|
||||||
|
putLong(SOURCE_ID, sourceId)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue