diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2018-08-12 16:39:20 +0530 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-08-26 11:04:01 -0600 |
commit | 6efbf654053a9d5110448fe405a2494c2c4ddaa3 (patch) | |
tree | ce8da78965e8388af391e29021f38333efad222c /app/src/main | |
parent | abb121224df116284c105014c5463b2307f8b5fc (diff) |
Target SDK 28
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/com/wireguard/android/QuickTileService.java | 5 |
1 files changed, 1 insertions, 4 deletions
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; } |