Skip to content

Commit 123f98e

Browse files
committed
fix missing import
1 parent 5aa5d22 commit 123f98e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/src/free/java/io/github/sds100/keymapper/purchasing/PurchasingManagerImpl.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class PurchasingManagerImpl(
1414
private val coroutineScope: CoroutineScope,
1515
) : PurchasingManager {
1616
override val onCompleteProductPurchase: MutableSharedFlow<ProductId> = MutableSharedFlow()
17-
override val purchases: Flow<State<Set<ProductId>>> = MutableStateFlow(State.Data(emptySet()))
17+
override val purchases: Flow<State<Result<Set<ProductId>>>> =
18+
MutableStateFlow(State.Data(Error.PurchasingNotImplemented))
1819

1920
override suspend fun launchPurchasingFlow(product: ProductId): Result<Unit> {
2021
return Error.PurchasingNotImplemented
@@ -27,4 +28,6 @@ class PurchasingManagerImpl(
2728
override suspend fun isPurchased(product: ProductId): Result<Boolean> {
2829
return Error.PurchasingNotImplemented
2930
}
31+
32+
override fun refresh() {}
3033
}

0 commit comments

Comments
 (0)