From 134905ed6a97abce4ab19353e824f49631ffd4bf Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Thu, 12 Apr 2018 22:06:45 +0200 Subject: [PATCH] Missing method needed by the previous commit. --- .../nodomain/freeyourgadget/gadgetbridge/GBApplication.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java index c4e1080d8..b85546351 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java @@ -304,6 +304,9 @@ public class GBApplication extends Application { public static boolean isRunningMarshmallowOrLater() { return VERSION.SDK_INT >= Build.VERSION_CODES.M; } + public static boolean isRunningNougatOrLater() { + return VERSION.SDK_INT >= Build.VERSION_CODES.N; + } public static boolean isRunningOreoOrLater(){ return VERSION.SDK_INT >= Build.VERSION_CODES.O;