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
HACK: make Resources.mDrawableCache of type ThemedResourceCache, but only for F-Droid
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.
This commit is contained in:
@@ -125,6 +125,8 @@ public class Context extends Object {
|
||||
application_info.nativeLibraryDir = (new File(Environment.getExternalStorageDirectory(), "lib")).getAbsolutePath();
|
||||
application_info.sourceDir = native_get_apk_path();
|
||||
package_manager = new PackageManager();
|
||||
|
||||
r.applyPackageQuirks(application_info.packageName);
|
||||
}
|
||||
|
||||
private static native String native_get_apk_path();
|
||||
|
||||
Reference in New Issue
Block a user