Target SDK 28

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya authored and Jason A. Donenfeld committed 2018-08-26 11:04:01 -06:00
1 parent abb121224d
commit 6efbf65405
3 files changed
+4 -7

No files matched your search

@@ -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;
}