Skip to content

Commit

Permalink
Fix: Fixed the download update to install the internet build.
Browse files Browse the repository at this point in the history
Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
  • Loading branch information
HeCodes2Much committed Jul 7, 2024
1 parent 9a68088 commit 124c4d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class UpdateManagerHelper(private val fragment: Fragment) {

// Check if assets array has elements
if (assets.length() > 0) {
val apkUrl = (assets.get(0) as JSONObject).getString("browser_download_url")
val apkUrl = (assets.get(1) as JSONObject).getString("browser_download_url")
Log.d("UpdateManager", "APK URL: $apkUrl | Latest version: $latestVersion | Current version: $currentVersion")

if (latestVersion > currentVersion) {
Expand Down

0 comments on commit 124c4d9

Please sign in to comment.