Add support for amazon app links
This commit is contained in:
parent
8239f12ff7
commit
e6efffb981
@ -273,15 +273,6 @@
|
||||
<data android:scheme="fdroid.app" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
|
||||
<data android:scheme="market" android:host="details" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
@ -295,6 +286,15 @@
|
||||
<data android:pathPrefix="/app/" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
|
||||
<data android:scheme="market" android:host="details" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
@ -307,6 +307,28 @@
|
||||
<data android:path="/store/apps/details" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
|
||||
<data android:scheme="amzn" android:host="apps" android:path="/android" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
|
||||
<data android:scheme="http" />
|
||||
<data android:scheme="https" />
|
||||
<data android:host="amazon.com" />
|
||||
<data android:host="www.amazon.com" />
|
||||
<data android:path="/gp/mas/dl/android" />
|
||||
</intent-filter>
|
||||
|
||||
</activity>
|
||||
<activity
|
||||
android:label="@string/menu_preferences"
|
||||
|
@ -372,6 +372,11 @@ public class AppDetails extends ActionBarActivity implements ProgressListener, A
|
||||
// market://details?id=app.id
|
||||
// https://play.google.com/store/apps/details?id=app.id
|
||||
appId = data.getQueryParameter("id");
|
||||
} else if (host.equals("apps") || host.equals("amazon.com") ||
|
||||
host.equals("www.amazon.com")) {
|
||||
// amzn://apps/android?p=app.id
|
||||
// http://www.amazon.com/gp/mas/dl/android?p=app.id
|
||||
appId = data.getQueryParameter("p");
|
||||
} else {
|
||||
// https://f-droid.org/app/app.id
|
||||
appId = data.getLastPathSegment();
|
||||
|
Loading…
x
Reference in New Issue
Block a user