diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-29 16:01:44 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-29 16:01:44 +0200 |
commit | ccad128cc314100dc4ccfa53a87f69aff1c5319c (patch) | |
tree | 4faf0488bc6364030fa0f90cafdb0116c75b45e9 /app/src/main/java | |
parent | b2822df04b024bca267405a6036bc4b2b73ab835 (diff) |
Roll back to API 27 for now
There's no source available for API 28, which is a pain. But this commit
should be reverted whenever source is released.
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/wireguard/android/QuickTileService.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/QuickTileService.java b/app/src/main/java/com/wireguard/android/QuickTileService.java index 15b06670..55d3528f 100644 --- a/app/src/main/java/com/wireguard/android/QuickTileService.java +++ b/app/src/main/java/com/wireguard/android/QuickTileService.java @@ -58,10 +58,13 @@ 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; } |