fix after lib update

This commit is contained in:
Milos Kozak 2020-05-06 01:18:04 +02:00
parent 0c287bdef1
commit cf291b3adc

View file

@ -217,7 +217,7 @@ class ImportExportPrefs @Inject constructor(
fun importSharedPreferences(fragment: Fragment) {
fragment.activity?.let { fragmentAct ->
val callForPrefFile = fragmentAct.prepareCall(PrefsFileContract()) {
val callForPrefFile = fragmentAct.registerForActivityResult(PrefsFileContract()) {
it?.let {
importSharedPreferences(fragmentAct, it)
}
@ -227,7 +227,7 @@ class ImportExportPrefs @Inject constructor(
}
fun importSharedPreferences(activity: FragmentActivity) {
val callForPrefFile = activity.prepareCall(PrefsFileContract()) {
val callForPrefFile = activity.registerForActivityResult(PrefsFileContract()) {
it?.let {
importSharedPreferences(activity, it)
}