fix after lib update
This commit is contained in:
parent
0c287bdef1
commit
cf291b3adc
|
@ -217,7 +217,7 @@ class ImportExportPrefs @Inject constructor(
|
||||||
|
|
||||||
fun importSharedPreferences(fragment: Fragment) {
|
fun importSharedPreferences(fragment: Fragment) {
|
||||||
fragment.activity?.let { fragmentAct ->
|
fragment.activity?.let { fragmentAct ->
|
||||||
val callForPrefFile = fragmentAct.prepareCall(PrefsFileContract()) {
|
val callForPrefFile = fragmentAct.registerForActivityResult(PrefsFileContract()) {
|
||||||
it?.let {
|
it?.let {
|
||||||
importSharedPreferences(fragmentAct, it)
|
importSharedPreferences(fragmentAct, it)
|
||||||
}
|
}
|
||||||
|
@ -227,7 +227,7 @@ class ImportExportPrefs @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
fun importSharedPreferences(activity: FragmentActivity) {
|
fun importSharedPreferences(activity: FragmentActivity) {
|
||||||
val callForPrefFile = activity.prepareCall(PrefsFileContract()) {
|
val callForPrefFile = activity.registerForActivityResult(PrefsFileContract()) {
|
||||||
it?.let {
|
it?.let {
|
||||||
importSharedPreferences(activity, it)
|
importSharedPreferences(activity, it)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue