Skip to content

Commit

Permalink
added download notice
Browse files Browse the repository at this point in the history
  • Loading branch information
nin0-dev committed Jul 27, 2024
1 parent 4ae73e3 commit f610d0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/nin0dev/vendroid/HttpClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.nin0dev.vendroid
import android.app.Activity
import android.content.Context
import android.content.SharedPreferences
import android.widget.Toast
import java.io.ByteArrayOutputStream
import java.io.File
import java.io.IOException
Expand All @@ -25,6 +26,7 @@ object HttpClient {
res.openRawResource(R.raw.vencord_mobile).use { `is` -> VencordMobileRuntime = readAsText(`is`) }
if (VencordRuntime != null) return
if (sPrefs.getString("vencordLocation", Constants.JS_BUNDLE_URL) == Constants.JS_BUNDLE_URL || BuildConfig.DEBUG) { // user is debugging vencord or app, always redownload
Toast.makeText(activity, "Debugging app or Vencord, bundle will be redownloaded. Avoid using on limited networks", Toast.LENGTH_LONG).show()
vendroidFile.delete()
}
if (vendroidFile.exists()) {
Expand Down

0 comments on commit f610d0e

Please sign in to comment.