O is the android version with app shortcuts
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 27 Apr 2019 17:36:53 +0000 (20:36 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 27 Apr 2019 17:36:53 +0000 (20:36 +0300)
app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java

index 88cc39d..e2857a1 100644 (file)
@@ -331,7 +331,7 @@ public class MainActivity extends ProfileThemedActivity {
         }
     }
     private void createShortcuts() {
-        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) return;
+        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) return;
 
         List<ShortcutInfo> shortcuts = new ArrayList<>();
         try (LockHolder ignored = Data.profiles.lockForReading()) {