]> git.ktnx.net Git - mobile-ledger.git/commitdiff
Re-enable app shortcuts on android 7.1+ (Nougat++)
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 19 Oct 2019 09:22:38 +0000 (12:22 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 19 Oct 2019 09:22:38 +0000 (12:22 +0300)
was wrongly requiring android 8 (oreo)

app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java

index 793e0061702b7a51b192b6fd629f67affeadfa8f..9d9ad10d477fb88b8f3490ddaa15f3d9dd2d6885 100644 (file)
@@ -309,7 +309,7 @@ public class MainActivity extends ProfileThemedActivity {
         }
     }
     private void createShortcuts(List<MobileLedgerProfile> list) {
-        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) return;
+        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N_MR1) return;
 
         List<ShortcutInfo> shortcuts = new ArrayList<>();
         int i = 0;