Skip to content

Commit 021f515

Browse files
committed
feat: dev reset cache store
1 parent 405dd52 commit 021f515

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

app/src/main/java/to/bitkit/ui/settings/transactionSpeed/TransactionSpeedSettingsScreen.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package to.bitkit.ui.settings.transactionSpeed
22

33
import androidx.compose.foundation.layout.Column
4-
import androidx.compose.foundation.layout.Spacer
5-
import androidx.compose.foundation.layout.height
64
import androidx.compose.foundation.layout.padding
75
import androidx.compose.foundation.rememberScrollState
86
import androidx.compose.foundation.verticalScroll
@@ -15,7 +13,7 @@ import androidx.lifecycle.compose.collectAsStateWithLifecycle
1513
import androidx.navigation.NavController
1614
import to.bitkit.R
1715
import to.bitkit.models.TransactionSpeed
18-
import to.bitkit.ui.components.Caption13Up
16+
import to.bitkit.ui.components.settings.SectionHeader
1917
import to.bitkit.ui.components.settings.SettingsButtonRow
2018
import to.bitkit.ui.components.settings.SettingsButtonValue
2119
import to.bitkit.ui.navigateToCustomFeeSettings
@@ -62,9 +60,7 @@ private fun TransactionSpeedSettingsContent(
6260
Column(
6361
modifier = Modifier.padding(horizontal = 16.dp)
6462
) {
65-
Spacer(modifier = Modifier.height(16.dp))
66-
Caption13Up(text = stringResource(R.string.settings__general__speed_default), color = Colors.White64)
67-
Spacer(modifier = Modifier.height(16.dp))
63+
SectionHeader(stringResource(R.string.settings__general__speed_default))
6864

6965
SettingsButtonRow(
7066
title = stringResource(R.string.settings__fee__fast__label),

app/src/main/java/to/bitkit/viewmodels/DevSettingsViewModel.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ import com.synonym.bitkitcore.testNotification
99
import dagger.hilt.android.lifecycle.HiltViewModel
1010
import dagger.hilt.android.qualifiers.ApplicationContext
1111
import kotlinx.coroutines.CoroutineDispatcher
12-
import kotlinx.coroutines.currentCoroutineContext
1312
import kotlinx.coroutines.launch
1413
import kotlinx.coroutines.tasks.await
15-
import kotlinx.coroutines.withContext
1614
import to.bitkit.R
1715
import to.bitkit.data.CacheStore
1816
import to.bitkit.data.SettingsStore
@@ -148,7 +146,7 @@ class DevSettingsViewModel @Inject constructor(
148146

149147
fun resetCacheStore() {
150148
viewModelScope.launch {
151-
TODO("Not yet implemented")
149+
cacheStore.reset()
152150
}
153151
}
154152

0 commit comments

Comments
 (0)