Skip to content

Commit 6e5fe43

Browse files
committed
Remove settings and rotation buttons from notification panel.
Thanks to quick settings, these are redundant. Bug: 7142026 Change-Id: If38abda3635c4f11a7fa7fa221f4d821f998e445
1 parent d0c6ccb commit 6e5fe43

File tree

2 files changed

+6
-21
lines changed

2 files changed

+6
-21
lines changed

packages/SystemUI/res/layout/status_bar_expanded_header.xml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,6 @@
4242
android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date"
4343
/>
4444

45-
<com.android.systemui.statusbar.RotationToggle android:id="@+id/rotation_lock_button"
46-
android:layout_width="32dp"
47-
android:layout_height="32dp"
48-
android:layout_margin="8dp"
49-
android:button="@drawable/ic_notify_rotation"
50-
android:contentDescription="@string/accessibility_rotation_lock_off"
51-
android:clickable="true"
52-
/>
53-
54-
<ImageView android:id="@+id/settings_button"
55-
android:layout_width="48dp"
56-
android:layout_height="48dp"
57-
android:scaleType="center"
58-
android:src="@drawable/ic_notify_quicksettings"
59-
android:contentDescription="@string/accessibility_settings_button"
60-
/>
61-
6245
<Space
6346
android:layout_width="0dp"
6447
android:layout_height="0dp"

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ public class PhoneStatusBar extends BaseStatusBar {
177177
// top bar
178178
View mClearButton;
179179
View mSettingsButton;
180-
RotationToggle mRotationButton;
181180

182181
// carrier/wifi label
183182
private TextView mCarrierLabel;
@@ -367,8 +366,9 @@ public boolean onTouch(View v, MotionEvent event) {
367366
mClearButton.setEnabled(false);
368367
mDateView = (DateView)mStatusBarWindow.findViewById(R.id.date);
369368
mSettingsButton = mStatusBarWindow.findViewById(R.id.settings_button);
370-
mSettingsButton.setOnClickListener(mSettingsButtonListener);
371-
mRotationButton = (RotationToggle) mStatusBarWindow.findViewById(R.id.rotation_lock_button);
369+
if (mSettingsButton != null) {
370+
mSettingsButton.setOnClickListener(mSettingsButtonListener);
371+
}
372372

373373
mScrollView = (ScrollView)mStatusBarWindow.findViewById(R.id.scroll);
374374
mScrollView.setVerticalScrollBarEnabled(false); // less drawing during pulldowns
@@ -816,7 +816,9 @@ private void loadNotificationShade() {
816816
}
817817
}
818818

819-
mSettingsButton.setEnabled(isDeviceProvisioned());
819+
if (mSettingsButton != null) {
820+
mSettingsButton.setEnabled(isDeviceProvisioned());
821+
}
820822
}
821823

822824
@Override

0 commit comments

Comments
 (0)