1
0
Fork 0

added download notice

This commit is contained in:
nin0dev 2024-07-27 12:30:39 -04:00
parent 4ae73e379c
commit f610d0e9e5

View file

@ -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
@ -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()) {