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

Commit c0263f50 authored by Mark Hansen's avatar Mark Hansen
Browse files

Move LayerType @ViewDebug.Exported annotation from private field to public method

So that tools can access this reflectively post-Android-O.

Change-Id: Ie0ef4e20a5bb0209ce2450683aaa0641d1193f87
BUG: 297272831
parent fabdb43a
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -5223,11 +5223,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
    @Retention(RetentionPolicy.SOURCE)
    public @interface LayerType {}
    @ViewDebug.ExportedProperty(category = "drawing", mapping = {
            @ViewDebug.IntToString(from = LAYER_TYPE_NONE, to = "NONE"),
            @ViewDebug.IntToString(from = LAYER_TYPE_SOFTWARE, to = "SOFTWARE"),
            @ViewDebug.IntToString(from = LAYER_TYPE_HARDWARE, to = "HARDWARE")
    })
    int mLayerType = LAYER_TYPE_NONE;
    Paint mLayerPaint;
@@ -21888,6 +21883,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            @EnumEntry(value = LAYER_TYPE_SOFTWARE, name = "software"),
            @EnumEntry(value = LAYER_TYPE_HARDWARE, name = "hardware")
    })
    @ViewDebug.ExportedProperty(category = "drawing", mapping = {
            @ViewDebug.IntToString(from = LAYER_TYPE_NONE, to = "NONE"),
            @ViewDebug.IntToString(from = LAYER_TYPE_SOFTWARE, to = "SOFTWARE"),
            @ViewDebug.IntToString(from = LAYER_TYPE_HARDWARE, to = "HARDWARE")
    })
    @LayerType
    public int getLayerType() {
        return mLayerType;