From 6efbf654053a9d5110448fe405a2494c2c4ddaa3 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 12 Aug 2018 16:39:20 +0530 Subject: Target SDK 28 Signed-off-by: Harsh Shandilya --- app/build.gradle | 4 ++-- app/src/main/java/com/wireguard/android/QuickTileService.java | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'app') diff --git a/app/build.gradle b/app/build.gradle index e8b5ce80..fede1f08 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,12 +11,12 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } - compileSdkVersion 27 + compileSdkVersion 28 dataBinding.enabled true defaultConfig { applicationId 'com.wireguard.android' minSdkVersion 21 - targetSdkVersion 27 + targetSdkVersion 28 versionCode 438 versionName '0.0.20180729' buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel" diff --git a/app/src/main/java/com/wireguard/android/QuickTileService.java b/app/src/main/java/com/wireguard/android/QuickTileService.java index 55d3528f..15b06670 100644 --- a/app/src/main/java/com/wireguard/android/QuickTileService.java +++ b/app/src/main/java/com/wireguard/android/QuickTileService.java @@ -58,13 +58,10 @@ public class QuickTileService extends TileService { return ret; } - /* TODO: for Android P: Build.VERSION_CODES.P */ - private static final int BUILD_VERSION_CODES_P = 28; - @SuppressWarnings("deprecation") @Override public void onCreate() { - if (Build.VERSION.SDK_INT >= BUILD_VERSION_CODES_P) { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { iconOff = iconOn = Icon.createWithResource(this, R.drawable.ic_tile); return; } -- cgit v1.2.3