Skip to content

Commit e3e817d

Browse files
committed
- add missing comma to pmtech examples lua, move openURL calls to uiThread
1 parent fe1089f commit e3e817d

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

core/template/android/activity/pen_activity.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ void initCredentials()
262262
@Override
263263
protected void onCreate(Bundle arg0) {
264264

265+
m_instance = this;
266+
265267
init(this);
266268
FMOD.init(this);
267269
initCredentials();
@@ -363,8 +365,10 @@ public static void showKeyboard(boolean show)
363365

364366
public static void openURL(String url)
365367
{
366-
Intent web_intent = new Intent(Intent.ACTION_VIEW, android.net.Uri.parse(url));
367-
m_instance.startActivity(web_intent);
368+
m_instance.runOnUiThread(() -> {
369+
Intent webIntent = new Intent(Intent.ACTION_VIEW, android.net.Uri.parse(url));
370+
m_instance.startActivity(webIntent);
371+
});
368372
}
369373

370374
public static void createDirectory(String strdir)

examples/premake5.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ solution ("pmtech_examples_" .. platform)
3333
}
3434
androiddependencies {
3535
"androidx.appcompat:appcompat:1.7.0",
36-
"com.google.android.material:material:1.12.0"
36+
"com.google.android.material:material:1.12.0",
3737
"androidx.security:security-crypto:1.1.0-alpha06"
3838
}
3939
gradleproperties {

0 commit comments

Comments
 (0)