Skip to content

Commit

Permalink
[feat]: update v2.0.6
Browse files Browse the repository at this point in the history
* [fix]: content contains field in filters and battery consumption

* [build]: bumped app version
  • Loading branch information
F0x1d authored Nov 27, 2024
1 parent 8f37e7e commit 3c3ed3a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
applicationId = logFoxPackageName

versionCode = 65
versionName = "2.0.5"
versionCode = 66
versionName = "2.0.6"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class EditFilterFragment : BaseFragment<FragmentEditFilterBinding>() {
tidText.doAfterTextChanged { viewModel.tid = it?.toString().orEmpty() }
packageNameText.doAfterTextChanged { viewModel.packageName = it?.toString().orEmpty() }
tagText.doAfterTextChanged { viewModel.tag = it?.toString().orEmpty() }
contentText.doAfterTextChanged { viewModel.tag = it?.toString().orEmpty() }
contentText.doAfterTextChanged { viewModel.content = it?.toString().orEmpty() }

viewModel.state.collectWithLifecycle { state ->
updateIncludingButton(state.including)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import com.f0x1d.logfox.preferences.shared.AppPreferences
import com.f0x1d.logfox.terminals.base.Terminal
import dagger.hilt.android.qualifiers.ApplicationContext
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.FlowCollector
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import kotlinx.coroutines.withContext
import kotlinx.coroutines.withTimeout
import kotlinx.coroutines.yield
import timber.log.Timber
import java.io.BufferedReader
import javax.inject.Inject
Expand Down Expand Up @@ -110,11 +110,11 @@ internal class LoggingRepositoryImpl @Inject constructor(

private suspend fun BufferedReader.readLineCancellable(): String = withContext(ioDispatcher) {
while (true) {
yield()

if (ready()) {
return@withContext readLine()
}

delay(100L)
}

"not reachable"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class LoggingService : LifecycleService() {
terminal = loggingTerminal,
startingId = logs.lastOrNull()?.id ?: 0,
).catch { throwable ->
Timber.e(throwable)
Timber.e("logging flow threw smth", throwable)

if (throwable is TerminalNotSupportedException) {
if (appPreferences.fallbackToDefaultTerminal) {
Expand Down

0 comments on commit 3c3ed3a

Please sign in to comment.