This field is directly accessed by androidx and some androidx version
expect it to be a Map while other expect a ThemedResourceCache. This
mess is probably caused by reporting an age old Build.SDK_INT.
Temporarily detaching a View from its parent should not call any
callbacks, which was the case with the old implementation. This was
causing infinite recreation loops in some cases.
These classes are needed for WhatsApp, but having them available makes
NewPipe try to generate PoTokens in the WebView, which does not work yet,
so we just throw an Exception in NewPipe based on the package name.
also change a few things to work with latest libandroidfw, since we are now using
it's helper functions that need to agree on e.g STYLE_NUM_ENTRIES with the Java
code.
When Theme support was added, not everything was immediately updated
to use theme information properly. This was fixed in a lot of places
since then, but it seems not here.