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.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2018-07-29 16:01:44 +02:00
parent bce5d852e1
commit db7b61ab80
2 changed files with 6 additions and 3 deletions
@@ -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;
}