From d863f8f2fe430df789a618cc8bb4650ae20b6b4f Mon Sep 17 00:00:00 2001 From: Sergii Pylypenko Date: Sun, 16 May 2021 01:55:34 +0300 Subject: [PATCH] SDL: do not delete .obb file data --- project/java/DataDownloader.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/project/java/DataDownloader.java b/project/java/DataDownloader.java index 887276a85..98fd3a6a2 100644 --- a/project/java/DataDownloader.java +++ b/project/java/DataDownloader.java @@ -263,20 +263,6 @@ class DataDownloader extends Thread if( ! matched ) throw new IOException(); Status.setText( res.getString(R.string.download_unneeded) ); - for( int i = 1; i < downloadUrls.length; i++ ) - { - if( downloadUrls[i].indexOf("obb:") == 0 ) // APK expansion file provided by Google Play - { - String url = getObbFilePath(downloadUrls[i]); - if (new File(url).length() > 256) - { - Writer writer = new OutputStreamWriter(new FileOutputStream(url), "UTF-8"); - writer.write("Extracted and truncated\n"); - writer.close(); - Log.i("SDL", "Truncated file from expansion: " + url); - } - } - } return true; } catch ( IOException e ) { forceOverwrite = true;