Gimp: updated to Jessie, new warning dialog about removing old installation, fixed infinite restart in SDL

This commit is contained in:
Sergii Pylypenko
2015-04-02 21:06:22 +03:00
parent 4fc05b347f
commit b416a6ea17
7 changed files with 146 additions and 94 deletions

View File

@@ -918,17 +918,21 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer
public void openExternalApp(String pkgName, String activity, String url)
{
Intent i = new Intent();
if (url != null)
{
i.setAction(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
try {
Intent i = new Intent();
if (url != null && url.length() > 0)
{
i.setAction(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
}
if (pkgName != null && activity != null && pkgName.length() > 0 && activity.length() > 0)
{
i.setClassName(pkgName, activity);
}
context.startActivity(i);
} catch (Exception e) {
Log.i("SDL", "libSDL: cannot start external app: " + e.toString());
}
if (pkgName != null && activity != null)
{
i.setClassName(pkgName, activity);
}
context.startActivity(i);
}
private int PowerOf2(int i)