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:
@@ -87,6 +87,7 @@ public class Context extends Object {
|
||||
public static PackageManager package_manager;
|
||||
|
||||
public /*← FIXME?*/ static Application this_application;
|
||||
private LayoutInflater layout_inflater = new LayoutInflater(this);
|
||||
|
||||
File data_dir = null;
|
||||
File prefs_dir = null;
|
||||
@@ -219,7 +220,7 @@ public class Context extends Object {
|
||||
case "accessibility":
|
||||
return new AccessibilityManager();
|
||||
case "layout_inflater":
|
||||
return new LayoutInflater(this);
|
||||
return layout_inflater;
|
||||
case "wifi":
|
||||
return new WifiManager();
|
||||
case "bluetooth":
|
||||
|
||||
Reference in New Issue
Block a user