add Java APIs needed for WhatsApp MainActivity and ConversationActivity

This commit is contained in:
Julian Winkler
2024-08-25 11:20:01 +02:00
parent 9d8e091799
commit c492e1f03f
74 changed files with 903 additions and 69 deletions

View File

@@ -299,9 +299,11 @@ public class LayoutInflater {
// Inflate all children.
rInflate(childParser, view, childAttrs, true);
int id = attrs.getAttributeResourceValue("http://schemas.android.com/apk/res/android", "id", 0);
TypedArray ta = context.obtainStyledAttributes(attrs, new int[]{com.android.internal.R.attr.id});
int id = ta.getResourceId(0, 0);
if (id != 0)
view.setId(id);
ta.recycle();
group.addView(view);
}