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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user