api-impl: add misc stuff needed by Teeter

note that Teeter still needs more stuff before it will work
This commit is contained in:
Mis012
2023-07-25 14:29:43 +02:00
parent 08998b0076
commit ffb2855a05
17 changed files with 181 additions and 3 deletions

View File

@@ -1328,7 +1328,9 @@ public final class Bitmap {
public void eraseColor(int c) {
checkRecycled("Can't erase a recycled bitmap");
if (!isMutable()) {
throw new IllegalStateException("cannot erase immutable bitmaps");
// throw new IllegalStateException("cannot erase immutable bitmaps");
System.out.println("cannot erase immutable bitmaps");
return;
}
nativeErase(mNativeBitmap, c);
}