mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-25 19:38:10 +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(
|
AccountCacheState(
|
||||||
geolocationFlow = locationManager.geohashStateFlow,
|
geolocationFlow = locationManager.geohashStateFlow,
|
||||||
nwcFilterAssembler = sources.nwc,
|
nwcFilterAssembler = sources.nwc,
|
||||||
contentResolver = contentResolver,
|
contentResolverFn = ::contentResolverFn,
|
||||||
cache = cache,
|
cache = cache,
|
||||||
client = client,
|
client = client,
|
||||||
)
|
)
|
||||||
|
@@ -44,7 +44,7 @@ import kotlinx.coroutines.flow.StateFlow
|
|||||||
class AccountCacheState(
|
class AccountCacheState(
|
||||||
val geolocationFlow: StateFlow<LocationState.LocationResult>,
|
val geolocationFlow: StateFlow<LocationState.LocationResult>,
|
||||||
val nwcFilterAssembler: NWCPaymentFilterAssembler,
|
val nwcFilterAssembler: NWCPaymentFilterAssembler,
|
||||||
val contentResolver: ContentResolver,
|
val contentResolverFn: () -> ContentResolver,
|
||||||
val cache: LocalCache,
|
val cache: LocalCache,
|
||||||
val client: INostrClient,
|
val client: INostrClient,
|
||||||
) {
|
) {
|
||||||
@@ -75,7 +75,7 @@ class AccountCacheState(
|
|||||||
NostrSignerExternal(
|
NostrSignerExternal(
|
||||||
pubKey = accountSettings.keyPair.pubKey.toHexKey(),
|
pubKey = accountSettings.keyPair.pubKey.toHexKey(),
|
||||||
packageName = packageName,
|
packageName = packageName,
|
||||||
contentResolver = contentResolver,
|
contentResolver = contentResolverFn(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user