mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 01:31:58 +01:00
Refactors the lambda used for content resolvers.
This commit is contained in:
parent
f82364939f
commit
b29ccd9746
@ -21,6 +21,7 @@
|
||||
package com.vitorpamplona.amethyst
|
||||
|
||||
import android.app.Application
|
||||
import android.content.ContentResolver
|
||||
import android.content.Context
|
||||
import android.os.Looper
|
||||
import android.os.StrictMode
|
||||
@ -78,6 +79,8 @@ class Amethyst : Application() {
|
||||
.build()
|
||||
}
|
||||
|
||||
fun contentResolverFn(): ContentResolver = contentResolver
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
|
||||
|
@ -176,7 +176,7 @@ fun LoggedInPage(
|
||||
)
|
||||
}
|
||||
},
|
||||
contentResolver = { Amethyst.instance.contentResolver },
|
||||
contentResolver = Amethyst.instance::contentResolverFn,
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -196,7 +196,7 @@ fun LoggedInPage(
|
||||
)
|
||||
}
|
||||
},
|
||||
contentResolver = { Amethyst.instance.contentResolver },
|
||||
contentResolver = Amethyst.instance::contentResolverFn,
|
||||
)
|
||||
onDispose {
|
||||
accountViewModel.account.signer.launcher
|
||||
|
@ -198,7 +198,7 @@ fun LoginPage(
|
||||
}
|
||||
}
|
||||
},
|
||||
contentResolver = { Amethyst.instance.contentResolver },
|
||||
contentResolver = Amethyst.instance::contentResolverFn,
|
||||
)
|
||||
onDispose { externalSignerLauncher.clearLauncher() }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user