|
|
@ -8,6 +8,8 @@ import android.support.annotation.NonNull; |
|
|
|
import android.support.annotation.Nullable; |
|
|
|
import android.support.annotation.Nullable; |
|
|
|
import android.util.Log; |
|
|
|
import android.util.Log; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.anthonycr.bonsai.Schedulers; |
|
|
|
|
|
|
|
|
|
|
|
import java.io.BufferedReader; |
|
|
|
import java.io.BufferedReader; |
|
|
|
import java.io.File; |
|
|
|
import java.io.File; |
|
|
|
import java.io.FileInputStream; |
|
|
|
import java.io.FileInputStream; |
|
|
@ -38,7 +40,7 @@ public class FileUtils { |
|
|
|
* @param name the name of the file to store the bundle in. |
|
|
|
* @param name the name of the file to store the bundle in. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void writeBundleToStorage(final @NonNull Application app, final Bundle bundle, final @NonNull String name) { |
|
|
|
public static void writeBundleToStorage(final @NonNull Application app, final Bundle bundle, final @NonNull String name) { |
|
|
|
BrowserApp.getIOThread().execute(new Runnable() { |
|
|
|
Schedulers.io().execute(new Runnable() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
|
File outputFile = new File(app.getFilesDir(), name); |
|
|
|
File outputFile = new File(app.getFilesDir(), name); |
|
|
|