Fix compilation with latest sdl2

This commit is contained in:
Benau
2020-12-05 14:22:59 +08:00
parent ff2d4a950e
commit 7f9f4dc182
2 changed files with 2 additions and 57 deletions

View File

@@ -309,22 +309,6 @@ public class SuperTuxKartActivity extends SDLActivity
}
// ------------------------------------------------------------------------
/* Called by STK in JNI. */
public void openURL(final String url)
{
try
{
Uri uri = Uri.parse(url);
Intent i = new Intent(Intent.ACTION_VIEW, uri);
if (i.resolveActivity(getPackageManager()) != null)
startActivity(i);
}
catch (ActivityNotFoundException e)
{
e.printStackTrace();
}
}
// ------------------------------------------------------------------------
/* Called by STK in JNI. */
public void fromSTKEditBox(final int widget_id, final String text,
final int selection_start,
final int selection_end, final int type)