From: Damyan Ivanov Date: Sat, 19 Oct 2019 09:22:38 +0000 (+0300) Subject: Re-enable app shortcuts on android 7.1+ (Nougat++) X-Git-Tag: v0.11.0~99 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=d3c4d97302db96e1aeef4e31f49593cbb13acb3b;p=mobile-ledger.git Re-enable app shortcuts on android 7.1+ (Nougat++) was wrongly requiring android 8 (oreo) --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java index 793e0061..9d9ad10d 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java @@ -309,7 +309,7 @@ public class MainActivity extends ProfileThemedActivity { } } private void createShortcuts(List list) { - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) return; + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N_MR1) return; List shortcuts = new ArrayList<>(); int i = 0;