v1.2.0: fixed URI's failing to open on macOS
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user