From 28d8f5eb73774d8e3d1b0f57cf0fc2e15c6e421a Mon Sep 17 00:00:00 2001 From: Konstantin Kulikov Date: Mon, 22 Jan 2024 15:44:09 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 80f117b..c920264 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ + + # Bluetooth Radar Get it on Google Play From 33e6ca266766faff1f8568dcec807f97f524dc4b Mon Sep 17 00:00:00 2001 From: Semper-Viventem Date: Mon, 22 Jan 2024 15:56:53 +0200 Subject: [PATCH 2/2] Fix active scanner mode UI --- app/build.gradle.kts | 4 ++-- .../java/f/cking/software/ui/devicelist/DeviceListScreen.kt | 4 ++-- .../java/f/cking/software/utils/graphic/ComposeFunctions.kt | 6 +----- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 03fea4d..fb6aa0c 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -26,8 +26,8 @@ android { // This version code will be applied only for F-Droid builds, for other builds version code will be generated by gradle dynamically // For some reason F-Droid requires version code to be hardcoded in the build.gradle file - versionCode = 1705859017 - versionName = "0.22.3-beta" + versionCode = 1705859018 + versionName = "0.22.4-beta" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" diff --git a/app/src/main/java/f/cking/software/ui/devicelist/DeviceListScreen.kt b/app/src/main/java/f/cking/software/ui/devicelist/DeviceListScreen.kt index 107ce2e..32fbc65 100644 --- a/app/src/main/java/f/cking/software/ui/devicelist/DeviceListScreen.kt +++ b/app/src/main/java/f/cking/software/ui/devicelist/DeviceListScreen.kt @@ -213,8 +213,8 @@ object DeviceListScreen { private fun ExpandIcon(viewModel: DeviceListViewModel) { val state = viewModel.activeScannerExpandedState val icon = when (state) { - DeviceListViewModel.ActiveScannerExpandedState.COLLAPSED -> painterResource(id = R.drawable.ic_show_less) - DeviceListViewModel.ActiveScannerExpandedState.EXPANDED -> painterResource(id = R.drawable.ic_show_more) + DeviceListViewModel.ActiveScannerExpandedState.COLLAPSED -> painterResource(id = R.drawable.ic_show_more) + DeviceListViewModel.ActiveScannerExpandedState.EXPANDED -> painterResource(id = R.drawable.ic_show_less) } IconButton(onClick = { viewModel.activeScannerExpandedState = state.next() }) { Icon( diff --git a/app/src/main/java/f/cking/software/utils/graphic/ComposeFunctions.kt b/app/src/main/java/f/cking/software/utils/graphic/ComposeFunctions.kt index 3273b4a..4262fc0 100644 --- a/app/src/main/java/f/cking/software/utils/graphic/ComposeFunctions.kt +++ b/app/src/main/java/f/cking/software/utils/graphic/ComposeFunctions.kt @@ -334,11 +334,7 @@ fun DeviceListItem( ) } Text( - text = stringResource( - R.string.lifetime_data, - device.firstDetectionPeriod(LocalContext.current), - device.lastDetectionPeriod(LocalContext.current) - ), + text = updateStr, fontWeight = FontWeight.Light, ) }