Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c465bbe authored by Xavier Ducrohet's avatar Xavier Ducrohet
Browse files

Cherry-pick f1dee1 from master for SDK. do not merge.

Layoutlib: add support for ITextServicesManager.

This include a fix in layoutlib_create to properly handle
delegating a static method of an inner class (was broken and
only worked on non static method).

Added a few comments here and there to *_Accessor classes so
that it's a bit more obvious what they are for and how they are
used.

Change-Id: I186ce33236e4de08d0205f75fb8d20d74c92da34
parent 8b42fcef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ import android.util.AttributeSet;
import android.util.TypedValue;

/**
 * Delegate used to provide new implementation of a select few methods of {@link Theme}
 * Delegate used to provide new implementation of a select few methods of {@link Resources$Theme}
 *
 * Through the layoutlib_create tool, the original  methods of Theme have been replaced
 * by calls to methods of the same name in this delegate class.
+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@

package android.graphics;

/**
 * Class allowing access to package-protected methods/fields.
 */
public class Typeface_Accessor {

    public static void resetDefaults() {
+3 −0
Original line number Diff line number Diff line
@@ -15,6 +15,9 @@
 */
package android.os;

/**
 * Class allowing access to package-protected methods/fields.
 */
public class Looper_Accessor {

    public static void cleanupThread() {
+3 −0
Original line number Diff line number Diff line
@@ -22,6 +22,9 @@ import com.android.layoutlib.bridge.android.BridgeWindowSession;
import android.os.Handler;
import android.view.View.AttachInfo;

/**
 * Class allowing access to package-protected methods/fields.
 */
public class AttachInfo_Accessor {

    public static void setAttachInfo(View view) {
+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@

package android.view;

/**
 * Class allowing access to package-protected methods/fields.
 */
public class ViewConfiguration_Accessor {

    public static void clearConfigurations() {
Loading