You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: add stubs / simple stuff for OsmAnd
without native libs present, launches and renders white square in map view; with native libs present, segfaults in bundled skia
This commit is contained in:
@@ -851,23 +851,28 @@ public class Resources {
|
||||
* solid color or multiple colors that can be selected based on a state.
|
||||
*/
|
||||
public ColorStateList getColorStateList(int id) throws NotFoundException {
|
||||
TypedValue value;
|
||||
synchronized (mAccessLock) {
|
||||
value = mTmpValue;
|
||||
if (value == null) {
|
||||
value = new TypedValue();
|
||||
} else {
|
||||
mTmpValue = null;
|
||||
}
|
||||
getValue(id, value, true);
|
||||
}
|
||||
ColorStateList res = loadColorStateList(value, id);
|
||||
synchronized (mAccessLock) {
|
||||
if (mTmpValue == null) {
|
||||
mTmpValue = value;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
return getColorStateList(id, null);
|
||||
}
|
||||
|
||||
/* FIXME use the theme */
|
||||
public ColorStateList getColorStateList(int id, Theme theme) throws NotFoundException {
|
||||
TypedValue value;
|
||||
synchronized (mAccessLock) {
|
||||
value = mTmpValue;
|
||||
if (value == null) {
|
||||
value = new TypedValue();
|
||||
} else {
|
||||
mTmpValue = null;
|
||||
}
|
||||
getValue(id, value, true);
|
||||
}
|
||||
ColorStateList res = loadColorStateList(value, id);
|
||||
synchronized (mAccessLock) {
|
||||
if (mTmpValue == null) {
|
||||
mTmpValue = value;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user