diff --git a/F-Droid/AndroidManifest.xml b/F-Droid/AndroidManifest.xml index b67bf760e..0328b2839 100644 --- a/F-Droid/AndroidManifest.xml +++ b/F-Droid/AndroidManifest.xml @@ -294,6 +294,19 @@ + + + + + + + + + + + + + *
  • market://details?id=[app_id]
  • + *
  • https://play.google.com/store/apps/details?id=[app_id]
  • *
  • https://f-droid.org/app/[app_id]
  • *
  • fdroid.app:[app_id]
  • * @@ -362,8 +363,14 @@ public class AppDetails extends ActionBarActivity implements ProgressListener, A String appId = null; if (data != null) { if (data.isHierarchical()) { - if (data.getHost() != null && data.getHost().equals("details")) { + final String host = data.getHost(); + if (host == null) { + Log.e(TAG, "Null host found in app link!"); + return null; + } + if (host.equals("details") || host.equals("play.google.com")) { // market://details?id=app.id + // https://play.google.com/store/apps/details?id=app.id appId = data.getQueryParameter("id"); } else { // https://f-droid.org/app/app.id