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
api-impl: fixes for apps using old support library
This commit is contained in:
@@ -84,6 +84,7 @@ public class LayoutInflater {
|
||||
context = new ContextThemeWrapper(context, themeResId);
|
||||
}
|
||||
ta.recycle();
|
||||
constructor.setAccessible(true);
|
||||
View view_instance = (View)constructor.newInstance(context, attrs);
|
||||
|
||||
return view_instance;
|
||||
|
||||
@@ -67,4 +67,6 @@ public interface MenuItem {
|
||||
public CharSequence getTitleCondensed();
|
||||
|
||||
public CharSequence getTitle();
|
||||
|
||||
public MenuItem setNumericShortcut(char numericChar);
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
|
||||
// Reusing removeView in removeViewInLayout is not possible, because e.g.
|
||||
// ViewPager overrides removeView to call removeViewInLayout
|
||||
protected void removeViewInternal(View child) {
|
||||
if (child.parent != this)
|
||||
if (child == null || child.parent != this)
|
||||
return;
|
||||
child.parent = null;
|
||||
children.remove(child);
|
||||
|
||||
Reference in New Issue
Block a user