diff options
author | John Spurlock <jspurlock@google.com> | 2014-04-15 16:44:01 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-04-15 16:44:01 +0000 |
commit | 14a6d6826cc6253ecd036281a0ede597c8b5bf75 (patch) | |
tree | bbb00ca7da4c9d9192e206ad82650d789427008b /packages | |
parent | 141b3b9c5ff69c3c40d3709d90d81eaadc18240d (diff) | |
parent | 584caa5fabf22b1092c7a8659bfb62f70aa81819 (diff) | |
download | frameworks_base-14a6d6826cc6253ecd036281a0ede597c8b5bf75.zip frameworks_base-14a6d6826cc6253ecd036281a0ede597c8b5bf75.tar.gz frameworks_base-14a6d6826cc6253ecd036281a0ede597c8b5bf75.tar.bz2 |
Merge "Migrate away from @hidden onViewAdded."
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) { + } + }; } |