summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Annie Chin <afchin@google.com> 2016-06-24 17:07:08 -0700
committer Annie Chin <afchin@google.com> 2016-06-24 17:07:08 -0700
commitedeb517a94d8adc304f8e7564aa618fb70d87a9c (patch)
treecdb58e15386cee85019a4ef2694ab7cee3d79bbc
parent5c6b53223c44b51a2fab2fc7af97893eb6bd596c (diff)
Add getters for ButtonDispatcher HomeButton and its views
Bug: 29617922 Change-Id: I9cc672441520eb688ea8b3525be2b3d83f9e6656
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/ButtonDispatcher.java4
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java4
2 files changed, 8 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ButtonDispatcher.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ButtonDispatcher.java
index b5a48a3c67e9..b53a99907146 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ButtonDispatcher.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ButtonDispatcher.java
@@ -157,6 +157,10 @@ public class ButtonDispatcher {
}
}
+ public ArrayList<View> getViews() {
+ return mViews;
+ }
+
public View getCurrentView() {
return mCurrentView;
}
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
index 376f724a97fc..515cfb8b0a76 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -4245,6 +4245,10 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
mStackScroller.setActivatedChild(view);
}
+ public ButtonDispatcher getHomeButton() {
+ return mNavigationBarView.getHomeButton();
+ }
+
/**
* @param state The {@link StatusBarState} to set.
*/