Skip to content

Commit 2525476

Browse files
committed
give access to the mView and mActivity in the PythonActivity
1 parent 676f840 commit 2525476

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/src/org/renpy/android/PythonActivity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public class PythonActivity extends Activity implements Runnable {
3838
private static AudioThread mAudioThread = null;
3939

4040
// The SDLSurfaceView we contain.
41-
private SDLSurfaceView mView = null;
41+
public SDLSurfaceView mView = null;
42+
public PythonActivity mActivity = null;
4243

4344
// Did we launch our thread?
4445
private boolean mLaunchedThread = false;
@@ -59,6 +60,7 @@ protected void onCreate(Bundle savedInstanceState) {
5960

6061
Hardware.context = this;
6162
Action.context = this;
63+
this.mActivity = this;
6264

6365
getWindowManager().getDefaultDisplay().getMetrics(Hardware.metrics);
6466

0 commit comments

Comments
 (0)