diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/AnkiDroidApp.java b/AnkiDroid/src/main/java/com/ichi2/anki/AnkiDroidApp.java index e249988d7fb6..529472d1f63c 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/AnkiDroidApp.java +++ b/AnkiDroid/src/main/java/com/ichi2/anki/AnkiDroidApp.java @@ -307,6 +307,10 @@ public static boolean isChromebook() { return android.os.Build.BRAND.equalsIgnoreCase("chromium") || android.os.Build.MANUFACTURER.equalsIgnoreCase("chromium"); } + public static boolean isKindle() { + return Build.BRAND.equalsIgnoreCase("amazon") || Build.MANUFACTURER.equalsIgnoreCase("amazon"); + } + /** * Convenience method for accessing Shared preferences diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/Info.java b/AnkiDroid/src/main/java/com/ichi2/anki/Info.java index 51440390a786..645ca888e790 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/Info.java +++ b/AnkiDroid/src/main/java/com/ichi2/anki/Info.java @@ -157,8 +157,14 @@ protected void onCreate(Bundle savedInstanceState) { @Override public void onClick(View arg0) { if (mType == TYPE_ABOUT) { - Info.this.startActivity(new Intent(Intent.ACTION_VIEW, Uri - .parse("market://details?id=com.ichi2.anki"))); + if (AnkiDroidApp.isKindle()) { + Intent intent = new Intent("android.intent.action.VIEW", + Uri.parse("http://www.amazon.com/gp/mas/dl/android?p=com.ichi2.anki")); + startActivity(intent); + } else { + Info.this.startActivity(new Intent(Intent.ACTION_VIEW, Uri + .parse("market://details?id=com.ichi2.anki"))); + } return; } setResult(RESULT_OK);