Skip to content

Commit bae9d58

Browse files
committed
oops, wrong AssetExtract.java
1 parent 9bc26f8 commit bae9d58

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

pythonforandroid/bootstrap.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ def prepare_build_dir(self):
141141
'''Ensure that a build dir exists for the recipe. This same single
142142
dir will be used for building all different archs.'''
143143
self.build_dir = self.get_build_dir()
144-
self.common_dir = self.get_common_dir()
145144

146145
# get all bootstrap names along the inheritance path
147146
bootstrap_names = []
@@ -165,10 +164,6 @@ def prepare_build_dir(self):
165164
print(f"copying {bootstrap_dir}")
166165
copy_files(join(bootstrap_dir, 'build'), self.build_dir)
167166

168-
# copy_files(join(self.bootstrap_dir, 'build'), self.build_dir)
169-
# copy_files(join(self.common_dir, 'build'), self.build_dir,
170-
# override=False)
171-
172167
if self.ctx.symlink_java_src:
173168
# XXX: has also to be generalized as for the copy stuff above
174169
info('Symlinking java src instead of copying')

pythonforandroid/bootstraps/library/build/src/main/java/org/renpy/android/AssetExtract.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import java.io.*;
66

7-
import android.app.Activity;
7+
import android.content.Context;
88
import android.util.Log;
99

1010
import java.io.BufferedInputStream;
@@ -24,11 +24,11 @@
2424
public class AssetExtract {
2525

2626
private AssetManager mAssetManager = null;
27-
private Activity mActivity = null;
27+
private Context ctx = null;
2828

29-
public AssetExtract(Activity act) {
30-
mActivity = act;
31-
mAssetManager = act.getAssets();
29+
public AssetExtract(Context context) {
30+
ctx = context;
31+
mAssetManager = ctx.getAssets();
3232
}
3333

3434
public boolean extractTar(String asset, String target) {

0 commit comments

Comments
 (0)