Loading packages/SystemUI/res/layout-xlarge/status_bar_notification_panel_title.xml +6 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,6 @@ android:orientation="vertical" android:background="@drawable/notify_panel_clock_bg" > <ImageView android:id="@+id/network_signal" android:layout_height="32dp" Loading Loading @@ -150,4 +149,10 @@ android:layout_marginLeft="32dp" /> <Button android:id="@+id/mode_toggle" android:background="@null" android:layout_width="match_parent" android:layout_height="match_parent" /> </RelativeLayout> packages/SystemUI/src/com/android/systemui/statusbar/tablet/NotificationPanel.java +8 −6 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel, boolean mShowing; View mTitleArea; View mModeToggle; View mSettingsButton; View mNotificationButton; View mNotificationScroller; Loading Loading @@ -75,7 +76,8 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel, mContentParent = (ViewGroup)findViewById(R.id.content_parent); mContentParent.bringToFront(); mTitleArea = findViewById(R.id.title_area); mTitleArea.setOnClickListener(this); mModeToggle = findViewById(R.id.mode_toggle); mModeToggle.setOnClickListener(this); mScrim = findViewById(R.id.scrim); mGlow = findViewById(R.id.glow); Loading Loading @@ -138,7 +140,7 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel, } public void onClick(View v) { if (v == mTitleArea) { if (v == mModeToggle) { if (mSettingsView == null) { switchToSettingsMode(); } else { Loading @@ -163,10 +165,10 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel, } public boolean isInContentArea(int x, int y) { mContentArea.left = mContentFrame.getLeft(); mContentArea.top = mTitleArea.getTop(); mContentArea.right = mContentFrame.getRight(); mContentArea.bottom = mContentFrame.getBottom(); mContentArea.left = mContentFrame.getLeft() + mContentFrame.getPaddingLeft(); mContentArea.top = mTitleArea.getTop() + mTitleArea.getPaddingTop(); mContentArea.right = mContentFrame.getRight() - mContentFrame.getPaddingRight(); mContentArea.bottom = mContentFrame.getBottom() - mContentFrame.getPaddingBottom(); offsetDescendantRectToMyCoords(mContentParent, mContentArea); return mContentArea.contains(x, y); } Loading Loading
packages/SystemUI/res/layout-xlarge/status_bar_notification_panel_title.xml +6 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,6 @@ android:orientation="vertical" android:background="@drawable/notify_panel_clock_bg" > <ImageView android:id="@+id/network_signal" android:layout_height="32dp" Loading Loading @@ -150,4 +149,10 @@ android:layout_marginLeft="32dp" /> <Button android:id="@+id/mode_toggle" android:background="@null" android:layout_width="match_parent" android:layout_height="match_parent" /> </RelativeLayout>
packages/SystemUI/src/com/android/systemui/statusbar/tablet/NotificationPanel.java +8 −6 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel, boolean mShowing; View mTitleArea; View mModeToggle; View mSettingsButton; View mNotificationButton; View mNotificationScroller; Loading Loading @@ -75,7 +76,8 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel, mContentParent = (ViewGroup)findViewById(R.id.content_parent); mContentParent.bringToFront(); mTitleArea = findViewById(R.id.title_area); mTitleArea.setOnClickListener(this); mModeToggle = findViewById(R.id.mode_toggle); mModeToggle.setOnClickListener(this); mScrim = findViewById(R.id.scrim); mGlow = findViewById(R.id.glow); Loading Loading @@ -138,7 +140,7 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel, } public void onClick(View v) { if (v == mTitleArea) { if (v == mModeToggle) { if (mSettingsView == null) { switchToSettingsMode(); } else { Loading @@ -163,10 +165,10 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel, } public boolean isInContentArea(int x, int y) { mContentArea.left = mContentFrame.getLeft(); mContentArea.top = mTitleArea.getTop(); mContentArea.right = mContentFrame.getRight(); mContentArea.bottom = mContentFrame.getBottom(); mContentArea.left = mContentFrame.getLeft() + mContentFrame.getPaddingLeft(); mContentArea.top = mTitleArea.getTop() + mTitleArea.getPaddingTop(); mContentArea.right = mContentFrame.getRight() - mContentFrame.getPaddingRight(); mContentArea.bottom = mContentFrame.getBottom() - mContentFrame.getPaddingBottom(); offsetDescendantRectToMyCoords(mContentParent, mContentArea); return mContentArea.contains(x, y); } Loading