diff --git a/.gitignore b/.gitignore index b2ed268..4dc7dc6 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ build .externalNativeBuild .cxx local.properties +app/release/release/ diff --git a/.idea/misc.xml b/.idea/misc.xml index e0ef6f7..2557637 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/app/src/main/kotlin/io/github/revenge/xposed/modules/UpdaterModule.kt b/app/src/main/kotlin/io/github/revenge/xposed/modules/UpdaterModule.kt index e2c5307..49fcc9b 100644 --- a/app/src/main/kotlin/io/github/revenge/xposed/modules/UpdaterModule.kt +++ b/app/src/main/kotlin/io/github/revenge/xposed/modules/UpdaterModule.kt @@ -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) } } \ No newline at end of file