diff options
| author | John Reck <jreck@google.com> | 2015-04-28 13:18:52 -0700 |
|---|---|---|
| committer | John Reck <jreck@google.com> | 2015-04-28 13:18:52 -0700 |
| commit | c2330f5d460b759de677e0924830e2cbd43bf264 (patch) | |
| tree | 4a1ff34d25ba937f7f772c2fb714b2411bd0f726 /core/java/android | |
| parent | ba474807b3e46c1e6127d461214deafc22f53766 (diff) | |
| download | frameworks_base-c2330f5d460b759de677e0924830e2cbd43bf264.zip frameworks_base-c2330f5d460b759de677e0924830e2cbd43bf264.tar.gz frameworks_base-c2330f5d460b759de677e0924830e2cbd43bf264.tar.bz2 | |
Remove View:hasStaticLayer()
Bug: 19113169
Change-Id: I81286db45eecc92c0adf04a5983b752bf3290d45
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/view/TextureView.java | 5 | ||||
| -rw-r--r-- | core/java/android/view/View.java | 9 | ||||
| -rw-r--r-- | core/java/android/view/ViewGroup.java | 3 |
3 files changed, 1 insertions, 16 deletions
diff --git a/core/java/android/view/TextureView.java b/core/java/android/view/TextureView.java index ad34f02..6db46e9 100644 --- a/core/java/android/view/TextureView.java +++ b/core/java/android/view/TextureView.java @@ -284,11 +284,6 @@ public class TextureView extends View { return LAYER_TYPE_HARDWARE; } - @Override - boolean hasStaticLayer() { - return true; - } - /** * Calling this method has no effect. */ diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 5c6ce76..a0220a0 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -14342,15 +14342,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, } /** - * Indicates whether this view has a static layer. A view with layer type - * {@link #LAYER_TYPE_NONE} is a static layer. Other types of layers are - * dynamic. - */ - boolean hasStaticLayer() { - return true; - } - - /** * Indicates what type of layer is currently associated with this view. By default * a view does not have a layer, and the layer type is {@link #LAYER_TYPE_NONE}. * Refer to the documentation of {@link #setLayerType(int, android.graphics.Paint)} diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java index 4324e75..d0d4201 100644 --- a/core/java/android/view/ViewGroup.java +++ b/core/java/android/view/ViewGroup.java @@ -3505,8 +3505,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager final View[] children = mChildren; for (int i = 0; i < count; i++) { final View child = children[i]; - if (((child.mViewFlags & VISIBILITY_MASK) == VISIBLE || child.getAnimation() != null) && - child.hasStaticLayer()) { + if (((child.mViewFlags & VISIBILITY_MASK) == VISIBLE || child.getAnimation() != null)) { recreateChildDisplayList(child); } } |
