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
implement AssetManager.copyTheme()
This commit is contained in:
@@ -371,3 +371,8 @@ JNIEXPORT jint JNICALL Java_android_content_res_AssetManager_loadResourceBagValu
|
|||||||
ResTable_unlockBag(res_table, bag);
|
ResTable_unlockBag(res_table, bag);
|
||||||
return block;
|
return block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JNIEXPORT void JNICALL Java_android_content_res_AssetManager_copyTheme(JNIEnv *env, jclass class, jlong dest, jlong src)
|
||||||
|
{
|
||||||
|
Theme_setTo(_PTR(dest), _PTR(src));
|
||||||
|
}
|
||||||
|
|||||||
@@ -1231,7 +1231,7 @@ public class Resources {
|
|||||||
* @param other The existing Theme to copy from.
|
* @param other The existing Theme to copy from.
|
||||||
*/
|
*/
|
||||||
public void setTo(Theme other) {
|
public void setTo(Theme other) {
|
||||||
this.theme = other.theme;
|
AssetManager.copyTheme(this.theme, other.theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user