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: misc stubs and fixes for WhatsApp
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package android.view;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.graphics.drawable.Drawable;
|
||||
|
||||
public interface MenuItem {
|
||||
@@ -76,4 +77,6 @@ public interface MenuItem {
|
||||
public boolean expandActionView();
|
||||
|
||||
public boolean isActionViewExpanded();
|
||||
|
||||
public MenuItem setIntent(Intent intent);
|
||||
}
|
||||
|
||||
@@ -2223,4 +2223,12 @@ public class View implements Drawable.Callback {
|
||||
public boolean isDuplicateParentStateEnabled() { return false; }
|
||||
|
||||
public void setBackgroundTintMode(PorterDuff.Mode tintMode) {}
|
||||
|
||||
public void setNextFocusLeftId(int id) {}
|
||||
|
||||
public void setNextFocusRightId(int id) {}
|
||||
|
||||
public void setNextFocusDownId(int id) {}
|
||||
|
||||
public void setNextFocusUpId(int id) {}
|
||||
}
|
||||
|
||||
@@ -496,7 +496,9 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
|
||||
public LayoutParams(Context context, AttributeSet attrs) {
|
||||
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ViewGroup_Layout);
|
||||
setBaseAttributes(a, R.styleable.ViewGroup_Layout_layout_width, R.styleable.ViewGroup_Layout_layout_height);
|
||||
this.gravity = attrs.getAttributeIntValue("http://schemas.android.com/apk/res/android", "layout_gravity", -1);
|
||||
a.recycle();
|
||||
a = context.obtainStyledAttributes(attrs, new int[] { android.R.attr.layout_gravity });
|
||||
gravity = a.getInt(0, -1);
|
||||
a.recycle();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user