merge revengeXposed

This commit is contained in:
cocobo1 2025-11-22 12:19:12 +02:00
parent 623804ade5
commit bb37f8e7ef
3 changed files with 3 additions and 19 deletions

1
.gitignore vendored
View file

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

View file

@ -93,7 +93,7 @@ object LogBoxModule : Module() {
val options = arrayOf( val options = arrayOf(
if (isSafeModeEnabled(context)) "Disable Safe Mode" else "Enable Safe Mode", if (isSafeModeEnabled(context)) "Disable Safe Mode" else "Enable Safe Mode",
"Reset Bundle", "Reset Bundle",
"Reload App (Full Relaunch)" "Reload App"
) )
AlertDialog.Builder(context) AlertDialog.Builder(context)

View file

@ -111,7 +111,7 @@ object UpdaterModule : Module() {
// This is a retry, so we show a dialog // This is a retry, so we show a dialog
if (activity != null) { if (activity != null) {
withContext(Dispatchers.Main) { withContext(Dispatchers.Main) {
AlertDialog.Builder(activity).setTitle("Revenge Update Successful") AlertDialog.Builder(activity).setTitle("Kettu Update Successful")
.setMessage("A reload is required for changes to take effect.") .setMessage("A reload is required for changes to take effect.")
.setPositiveButton("Reload") { dialog, _ -> .setPositiveButton("Reload") { dialog, _ ->
reloadApp() reloadApp()
@ -144,23 +144,6 @@ object UpdaterModule : Module() {
val activity = lastActivity?.get() ?: return val activity = lastActivity?.get() ?: return
activity.runOnUiThread { activity.runOnUiThread {
AlertDialog.Builder(activity).setTitle("Revenge Update Failed").setMessage(
"""
Unable to download the latest version of Revenge.
This is usually caused by bad network connection.
Error: ${e.message ?: e.stackTraceToString()}
""".trimIndent()
).setNegativeButton("Dismiss") { dialog, _ ->
dialog.dismiss()
}.setPositiveButton("Retry Update") { dialog, _ ->
downloadScript(activity)
Toast.makeText(activity, "Retrying download in background...", Toast.LENGTH_SHORT).show()
dialog.dismiss()
}.setNeutralButton("Recovery") { dialog, _ ->
Utils.showRecoveryAlert(activity)
dialog.dismiss()
}.show()
} }
} }