mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 17:35:54 +03:00
Fixing coding style issues
This commit is contained in:
parent
082b39e651
commit
9047d9d62c
3 changed files with 2 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2022 New Vector Ltd
|
||||
* Copyright (c) 2022 The Matrix.org Foundation C.I.C.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -20,13 +20,6 @@ package org.matrix.android.sdk.api.session.room.location
|
|||
* Represents the result of an update of live location share like a start or a stop.
|
||||
*/
|
||||
sealed interface UpdateLiveLocationShareResult {
|
||||
/**
|
||||
* @param beaconEventId event id of the updated state event
|
||||
*/
|
||||
data class Success(val beaconEventId: String) : UpdateLiveLocationShareResult
|
||||
|
||||
/**
|
||||
* @param error thrown during the update
|
||||
*/
|
||||
data class Failure(val error: Throwable) : UpdateLiveLocationShareResult
|
||||
}
|
||||
|
|
|
@ -18,9 +18,7 @@ package org.matrix.android.sdk.internal.session.room.location
|
|||
|
||||
import io.mockk.coEvery
|
||||
import io.mockk.coVerify
|
||||
import io.mockk.just
|
||||
import io.mockk.mockk
|
||||
import io.mockk.runs
|
||||
import io.mockk.unmockkAll
|
||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||
import kotlinx.coroutines.test.runTest
|
||||
|
|
|
@ -93,7 +93,7 @@ class LocationLiveMapViewFragment @Inject constructor() : VectorBaseFragment<Fra
|
|||
|
||||
private fun observeViewEvents() {
|
||||
viewModel.observeViewEvents { viewEvent ->
|
||||
when(viewEvent) {
|
||||
when (viewEvent) {
|
||||
is LocationLiveMapViewEvents.Error -> displayErrorDialog(viewEvent.error)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue