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
make LayoutInflater instances persistent per Context
Also implement LayoutInfater.cloneInContext() and support mutipe View factories at once. This is needed, so that androidx can repace all normal Views with appcompat Views, which is needed for proper tint color support.
This commit is contained in:
@@ -407,7 +407,7 @@ public class Activity extends ContextThemeWrapper implements Window.Callback, La
|
||||
}
|
||||
|
||||
public LayoutInflater getLayoutInflater() {
|
||||
return new LayoutInflater(this);
|
||||
return (LayoutInflater)getSystemService("layout_inflater");
|
||||
}
|
||||
|
||||
public boolean isChangingConfigurations() {return false;}
|
||||
|
||||
Reference in New Issue
Block a user