Make some methods/fields package private so that layoutlib can access them.

Change-Id: I4aeadfbaf8a4f6a459fa19937c21ac23d9e5fb64
This commit is contained in:
Xavier Ducrohet
2011-08-11 10:16:17 -07:00
parent 7277f3b9b2
commit 7f9f99ea11
42 changed files with 347 additions and 162 deletions

View File

@ -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",

View File

@ -165,6 +165,8 @@ public class Main {
return false;
}
sOptions.generatePublicAccess = false;
return true;
}
}