mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-19 19:31:43 +02:00
Fixes the crash on starting when the contentResolver is not ready yet.
This commit is contained in:
@@ -161,7 +161,7 @@ class Amethyst : Application() {
|
||||
AccountCacheState(
|
||||
geolocationFlow = locationManager.geohashStateFlow,
|
||||
nwcFilterAssembler = sources.nwc,
|
||||
contentResolver = contentResolver,
|
||||
contentResolverFn = ::contentResolverFn,
|
||||
cache = cache,
|
||||
client = client,
|
||||
)
|
||||
|
@@ -44,7 +44,7 @@ import kotlinx.coroutines.flow.StateFlow
|
||||
class AccountCacheState(
|
||||
val geolocationFlow: StateFlow<LocationState.LocationResult>,
|
||||
val nwcFilterAssembler: NWCPaymentFilterAssembler,
|
||||
val contentResolver: ContentResolver,
|
||||
val contentResolverFn: () -> ContentResolver,
|
||||
val cache: LocalCache,
|
||||
val client: INostrClient,
|
||||
) {
|
||||
@@ -75,7 +75,7 @@ class AccountCacheState(
|
||||
NostrSignerExternal(
|
||||
pubKey = accountSettings.keyPair.pubKey.toHexKey(),
|
||||
packageName = packageName,
|
||||
contentResolver = contentResolver,
|
||||
contentResolver = contentResolverFn(),
|
||||
)
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user