Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdrlzy authored and kirillt committed Jan 19, 2023
1 parent 7334721 commit e4a12cf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ dependencies {

implementation 'com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0'
implementation 'com.github.MikeOrtiz:TouchImageView:3.1.1'
implementation 'com.github.ARK-Builders:ark-filepicker:252f27e7f2'
implementation 'com.github.ARK-Builders:ark-filepicker:c6d66141c1'

implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import kotlinx.coroutines.launch
import space.taran.arklib.arkFolder
import space.taran.arklib.arkStats
import space.taran.arknavigator.mvp.model.repo.stats.StatsEvent
import timber.log.Timber
import java.nio.file.Path

private const val FLUSH_INTERVAL = 10_000L
Expand All @@ -20,7 +21,12 @@ abstract class StatsCategoryStorage<out T>(
abstract val fileName: String
private val flushFlow = MutableSharedFlow<Unit>().also { flow ->
flow.debounce(FLUSH_INTERVAL).onEach {
flush()
// There may be an exception after root is removed
try {
flush()
} catch (e: Exception) {
Timber.e(e)
}
}.launchIn(scope)
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/dialog_info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:text="@string/delete_folder"
android:text="@string/delete_files"
android:visibility="gone" />

<LinearLayout
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@
<string name="pin">Pin</string>
<string name="unpin">Unpin</string>
<string name="scores">Scores</string>
<string name="resource_scores_erased">%1$s resource score%2$s will be erased.</string>
<string name="resource_scores_erased">%1$d resource score%2$s will be erased.</string>
<string name="utils">Utils</string>
<string name="folder_forget_warn">Navigator will forget the folder and all its children</string>
<string name="delete_folder">Delete folder from memory</string>
<string name="delete_files">Delete files</string>
</resources>

0 comments on commit e4a12cf

Please sign in to comment.