From f610d0e9e5c8b62ccaf42866e6092cd2e865e16f Mon Sep 17 00:00:00 2001 From: nin0dev Date: Sat, 27 Jul 2024 12:30:39 -0400 Subject: [PATCH] added download notice --- app/src/main/java/com/nin0dev/vendroid/HttpClient.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/nin0dev/vendroid/HttpClient.kt b/app/src/main/java/com/nin0dev/vendroid/HttpClient.kt index 771a0a9..570f245 100644 --- a/app/src/main/java/com/nin0dev/vendroid/HttpClient.kt +++ b/app/src/main/java/com/nin0dev/vendroid/HttpClient.kt @@ -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()) {