Make some methods/fields package private so that layoutlib can access them.
Change-Id: I4aeadfbaf8a4f6a459fa19937c21ac23d9e5fb64
This commit is contained in:
@ -95,10 +95,11 @@ public final class CreateInfo implements ICreateInfo {
|
||||
/**
|
||||
* The list of methods to rewrite as delegates.
|
||||
*/
|
||||
private final static String[] DELEGATE_METHODS = new String[] {
|
||||
public final static String[] DELEGATE_METHODS = new String[] {
|
||||
"android.app.Fragment#instantiate", //(Landroid/content/Context;Ljava/lang/String;Landroid/os/Bundle;)Landroid/app/Fragment;",
|
||||
"android.content.res.Resources$Theme#obtainStyledAttributes",
|
||||
"android.content.res.Resources$Theme#resolveAttribute",
|
||||
"android.content.res.TypedArray#getValueAt",
|
||||
"android.graphics.BitmapFactory#finishDecode",
|
||||
"android.os.Handler#sendMessageAtTime",
|
||||
"android.os.HandlerThread#run",
|
||||
@ -116,7 +117,7 @@ public final class CreateInfo implements ICreateInfo {
|
||||
/**
|
||||
* The list of classes on which to delegate all native methods.
|
||||
*/
|
||||
private final static String[] DELEGATE_CLASS_NATIVES = new String[] {
|
||||
public final static String[] DELEGATE_CLASS_NATIVES = new String[] {
|
||||
"android.animation.PropertyValuesHolder",
|
||||
"android.graphics.AvoidXfermode",
|
||||
"android.graphics.Bitmap",
|
||||
|
@ -165,6 +165,8 @@ public class Main {
|
||||
return false;
|
||||
}
|
||||
|
||||
sOptions.generatePublicAccess = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user