Skip to content

Commit 3c3ed3a

Browse files
authored
[feat]: update v2.0.6
* [fix]: content contains field in filters and battery consumption * [build]: bumped app version
1 parent 8f37e7e commit 3c3ed3a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Diff for: app/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ android {
99
defaultConfig {
1010
applicationId = logFoxPackageName
1111

12-
versionCode = 65
13-
versionName = "2.0.5"
12+
versionCode = 66
13+
versionName = "2.0.6"
1414
}
1515
}
1616

Diff for: feature/filters/edit/src/main/kotlin/com/f0x1d/logfox/feature/filters/edit/presentation/ui/EditFilterFragment.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class EditFilterFragment : BaseFragment<FragmentEditFilterBinding>() {
9292
tidText.doAfterTextChanged { viewModel.tid = it?.toString().orEmpty() }
9393
packageNameText.doAfterTextChanged { viewModel.packageName = it?.toString().orEmpty() }
9494
tagText.doAfterTextChanged { viewModel.tag = it?.toString().orEmpty() }
95-
contentText.doAfterTextChanged { viewModel.tag = it?.toString().orEmpty() }
95+
contentText.doAfterTextChanged { viewModel.content = it?.toString().orEmpty() }
9696

9797
viewModel.state.collectWithLifecycle { state ->
9898
updateIncludingButton(state.including)

Diff for: feature/logging/impl/src/main/kotlin/com/f0x1d/logfox/feature/logging/impl/data/LoggingRepositoryImpl.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import com.f0x1d.logfox.preferences.shared.AppPreferences
99
import com.f0x1d.logfox.terminals.base.Terminal
1010
import dagger.hilt.android.qualifiers.ApplicationContext
1111
import kotlinx.coroutines.CoroutineDispatcher
12+
import kotlinx.coroutines.delay
1213
import kotlinx.coroutines.flow.Flow
1314
import kotlinx.coroutines.flow.FlowCollector
1415
import kotlinx.coroutines.flow.flow
1516
import kotlinx.coroutines.flow.flowOn
1617
import kotlinx.coroutines.withContext
1718
import kotlinx.coroutines.withTimeout
18-
import kotlinx.coroutines.yield
1919
import timber.log.Timber
2020
import java.io.BufferedReader
2121
import javax.inject.Inject
@@ -110,11 +110,11 @@ internal class LoggingRepositoryImpl @Inject constructor(
110110

111111
private suspend fun BufferedReader.readLineCancellable(): String = withContext(ioDispatcher) {
112112
while (true) {
113-
yield()
114-
115113
if (ready()) {
116114
return@withContext readLine()
117115
}
116+
117+
delay(100L)
118118
}
119119

120120
"not reachable"

Diff for: feature/logging/service/src/main/kotlin/com/f0x1d/logfox/feature/logging/service/presentation/LoggingService.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class LoggingService : LifecycleService() {
150150
terminal = loggingTerminal,
151151
startingId = logs.lastOrNull()?.id ?: 0,
152152
).catch { throwable ->
153-
Timber.e(throwable)
153+
Timber.e("logging flow threw smth", throwable)
154154

155155
if (throwable is TerminalNotSupportedException) {
156156
if (appPreferences.fallbackToDefaultTerminal) {

0 commit comments

Comments
 (0)