8000 call getExtra on mActivity not self · fsfish/python-for-android@bedd655 · GitHub
[go: up one dir, main page]

Skip to content

Commit bedd655

Browse files
committed
call getExtra on mActivity not self
1 parent f1b9b9e commit bedd655

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonforandroid/bootstraps/sdl2/build/src/main/java/org/kivy/android/PythonActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ protected void onPostExecute(String result) {
151151
File path = new File(getIntent().getData().getSchemeSpecificPart());
152152

153153
Project p = Project.scanDirectory(path);
154-
String custom_orientation = this.getExtra("orientation");
154+
String custom_orientation = PythonActivity.mActivity.getExtra("orientation");
155155

156156
String entry_point = getEntryPoint(p.dir);
157157
SDLActivity.nativeSetenv("ANDROID_ENTRYPOINT", p.dir + "/" + entry_point);
@@ -505,7 +505,7 @@ public String getEntryPoint(String search_dir) {
505505
* have a compiled version or not.
506506
*/
507507
List<String> entryPoints = new ArrayList<String>();
508-
String extra = this.getExtra("entrypoint");
508+
String extra = PythonActivity.mActivity.getExtra("entrypoint");
509509
if (extra != "")
510510
entryPoints.add(extra); // custom entrypoint
511511

0 commit comments

Comments
 (0)
0