v1.2.0: fixed URI's failing to open on macOS

This commit is contained in:
Evan Debenham
2022-01-26 19:55:54 -05:00
parent c6189e32dc
commit 17d4dda402
7 changed files with 41 additions and 10 deletions
@@ -315,7 +315,7 @@ public class AboutScene extends PixelScene {
linkButton = new PointerArea(0, 0, 0, 0){
@Override
protected void onClick( PointerEvent event ) {
DeviceCompat.openURI( linkUrl );
ShatteredPixelDungeon.platform.openURI( linkUrl );
}
};
add(linkButton);
@@ -151,7 +151,7 @@ public class NewsScene extends PixelScene {
link += "?utm_source=shatteredpd";
link += "&utm_medium=news_page";
link += "&utm_campaign=ingame_link";
DeviceCompat.openURI(link);
ShatteredPixelDungeon.platform.openURI(link);
}
};
btnSite.icon(Icons.get(Icons.NEWS));
@@ -323,7 +323,7 @@ public class NewsScene extends PixelScene {
link += "?utm_source=shatteredpd";
link += "&utm_medium=news_page";
link += "&utm_campaign=ingame_link";
DeviceCompat.openURI(link);
ShatteredPixelDungeon.platform.openURI(link);
}
};
link.setRect(0, height + 2, width, BTN_HEIGHT);