fix(gitignore): fixed gitignore

This commit is contained in:
cocobo1 2025-09-25 22:42:14 +03:00
parent 9970bc5751
commit 766c0dd608
3 changed files with 5 additions and 19 deletions

1
.gitignore vendored
View file

@ -13,3 +13,4 @@ build
.externalNativeBuild
.cxx
local.properties
app/release/release/

1
.idea/misc.xml generated
View file

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="FrameworkDetectionExcludesConfiguration">

View file

@ -49,8 +49,8 @@ class UpdaterModule : Module() {
companion object {
var job: Job? = null
private const val TIMEOUT_CACHED = 2000L
private const val TIMEOUT = 80000L
private const val TIMEOUT_CACHED = 5000L
private const val TIMEOUT = 50000L
private const val ETAG_FILE = "etag.txt"
private const val CONFIG_FILE = "loader.json"
@ -143,21 +143,7 @@ class UpdaterModule : Module() {
override fun onActivity(activity: Activity) {
error ?: return
AlertDialog.Builder(activity).setTitle("Kettu Update Failed").setMessage(
"""
Unable to download the latest version of Kettu.
This is usually caused by bad network connection.
Error: ${error?.message ?: error.toString()}
""".trimIndent()
).setNegativeButton("Dismiss") { dialog, _ ->
dialog.dismiss()
}.setPositiveButton("Retry Update") { dialog, _ ->
error = null
downloadScript(activity)
Toast.makeText(activity, "Retrying download in background...", Toast.LENGTH_SHORT).show()
dialog.dismiss()
}.show()
error = null
downloadScript(activity)
}
}