Skip to content

Commit 63bcc14

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "Remove settings and rotation buttons from notification panel." into jb-mr1-dev
2 parents a216360 + 6e5fe43 commit 63bcc14

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;
@@ -365,8 +364,9 @@ public boolean onTouch(View v, MotionEvent event) {
365364
mClearButton.setEnabled(false);
366365
mDateView = (DateView)mStatusBarWindow.findViewById(R.id.date);
367366
mSettingsButton = mStatusBarWindow.findViewById(R.id.settings_button);
368-
mSettingsButton.setOnClickListener(mSettingsButtonListener);
369-
mRotationButton = (RotationToggle) mStatusBarWindow.findViewById(R.id.rotation_lock_button);
367+
if (mSettingsButton != null) {
368+
mSettingsButton.setOnClickListener(mSettingsButtonListener);
369+
}
370370

371371
mScrollView = (ScrollView)mStatusBarWindow.findViewById(R.id.scroll);
372372
mScrollView.setVerticalScrollBarEnabled(false); // less drawing during pulldowns
@@ -819,7 +819,9 @@ private void loadNotificationShade() {
819819
}
820820
}
821821

822-
mSettingsButton.setEnabled(isDeviceProvisioned());
822+
if (mSettingsButton != null) {
823+
mSettingsButton.setEnabled(isDeviceProvisioned());
824+
}
823825
}
824826

825827
@Override

0 commit comments

Comments
 (0)