implement AssetManager.copyTheme()

This commit is contained in:
Julian Winkler
2024-02-10 10:26:30 +01:00
parent ef029f7cea
commit 164383121c
2 changed files with 6 additions and 1 deletions

View File

@@ -371,3 +371,8 @@ JNIEXPORT jint JNICALL Java_android_content_res_AssetManager_loadResourceBagValu
ResTable_unlockBag(res_table, bag);
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));
}

View File

@@ -1231,7 +1231,7 @@ public class Resources {
* @param other The existing Theme to copy from.
*/
public void setTo(Theme other) {
this.theme = other.theme;
AssetManager.copyTheme(this.theme, other.theme);
}
/**