diff options
| author | Alan Viverette <alanv@google.com> | 2014-09-30 22:06:02 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-09-30 22:06:05 +0000 |
| commit | c44c77d305c02d9c8280df5ce3a816ee586c9d52 (patch) | |
| tree | 48e719c96e9fb0961c76a9fe247c512530e5d100 /core/java/android | |
| parent | ffa16f944882f2e27109af8fe4b7272322f9cb84 (diff) | |
| parent | 3be5e0e625534126a922d407d8c5f3ffc7d26568 (diff) | |
| download | frameworks_base-c44c77d305c02d9c8280df5ce3a816ee586c9d52.zip frameworks_base-c44c77d305c02d9c8280df5ce3a816ee586c9d52.tar.gz frameworks_base-c44c77d305c02d9c8280df5ce3a816ee586c9d52.tar.bz2 | |
Merge "Implement missing visibility management for FrameLayout foreground" into lmp-dev
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/widget/FrameLayout.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/widget/FrameLayout.java b/core/java/android/widget/FrameLayout.java index 235e79f..e317524 100644 --- a/core/java/android/widget/FrameLayout.java +++ b/core/java/android/widget/FrameLayout.java @@ -29,6 +29,7 @@ import android.graphics.Region; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.view.Gravity; +import android.view.RemotableViewMethod; import android.view.View; import android.view.ViewDebug; import android.view.ViewGroup; @@ -201,6 +202,15 @@ public class FrameLayout extends ViewGroup { } } + @Override + @RemotableViewMethod + public void setVisibility(@Visibility int visibility) { + super.setVisibility(visibility); + if (mForeground != null) { + mForeground.setVisible(visibility == VISIBLE, false); + } + } + /** * {@inheritDoc} */ |
