diff options
author | John Spurlock <jspurlock@google.com> | 2014-04-15 12:40:13 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2014-04-15 12:40:13 -0400 |
commit | 584caa5fabf22b1092c7a8659bfb62f70aa81819 (patch) | |
tree | 4c33deaf18f1a0bac04f9ec279ba04f8f41d6274 /packages | |
parent | 1c3f409284b47312c1c7e5d36283df9a05d29dfb (diff) | |
download | frameworks_base-584caa5fabf22b1092c7a8659bfb62f70aa81819.zip frameworks_base-584caa5fabf22b1092c7a8659bfb62f70aa81819.tar.gz frameworks_base-584caa5fabf22b1092c7a8659bfb62f70aa81819.tar.bz2 |
Migrate away from @hidden onViewAdded.
Change-Id: Id8c1c05a2fdeb0776a3d70e67990da1e8e93b18a
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java index 10a9b64..0266144 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java @@ -334,6 +334,7 @@ public class PanelView extends FrameLayout { mTimeAnimator = new TimeAnimator(); mTimeAnimator.setTimeListener(mAnimationCallback); + setOnHierarchyChangeListener(mHierarchyListener); } private void loadDimens() { @@ -630,11 +631,6 @@ public class PanelView extends FrameLayout { return mViewName; } - @Override - protected void onViewAdded(View child) { - if (DEBUG) logf("onViewAdded: " + child); - } - public View getHandle() { return mHandleView; } @@ -834,4 +830,15 @@ public class PanelView extends FrameLayout { mTimeAnimator, ((mTimeAnimator!=null && mTimeAnimator.isStarted())?" (started)":"") )); } + + private final OnHierarchyChangeListener mHierarchyListener = new OnHierarchyChangeListener() { + @Override + public void onChildViewAdded(View parent, View child) { + if (DEBUG) logf("onViewAdded: " + child); + } + + @Override + public void onChildViewRemoved(View parent, View child) { + } + }; } |