am 63bcc14c: Merge "Remove settings and rotation buttons from notification panel." into jb-mr1-dev
* commit '63bcc14c433b754c234bb593e6fdeaf08db1b106': Remove settings and rotation buttons from notification panel.
This commit is contained in:
@@ -42,23 +42,6 @@
|
|||||||
android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date"
|
android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<com.android.systemui.statusbar.RotationToggle android:id="@+id/rotation_lock_button"
|
|
||||||
android:layout_width="32dp"
|
|
||||||
android:layout_height="32dp"
|
|
||||||
android:layout_margin="8dp"
|
|
||||||
android:button="@drawable/ic_notify_rotation"
|
|
||||||
android:contentDescription="@string/accessibility_rotation_lock_off"
|
|
||||||
android:clickable="true"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<ImageView android:id="@+id/settings_button"
|
|
||||||
android:layout_width="48dp"
|
|
||||||
android:layout_height="48dp"
|
|
||||||
android:scaleType="center"
|
|
||||||
android:src="@drawable/ic_notify_quicksettings"
|
|
||||||
android:contentDescription="@string/accessibility_settings_button"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Space
|
<Space
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
|
|||||||
@@ -177,7 +177,6 @@ public class PhoneStatusBar extends BaseStatusBar {
|
|||||||
// top bar
|
// top bar
|
||||||
View mClearButton;
|
View mClearButton;
|
||||||
View mSettingsButton;
|
View mSettingsButton;
|
||||||
RotationToggle mRotationButton;
|
|
||||||
|
|
||||||
// carrier/wifi label
|
// carrier/wifi label
|
||||||
private TextView mCarrierLabel;
|
private TextView mCarrierLabel;
|
||||||
@@ -365,8 +364,9 @@ public class PhoneStatusBar extends BaseStatusBar {
|
|||||||
mClearButton.setEnabled(false);
|
mClearButton.setEnabled(false);
|
||||||
mDateView = (DateView)mStatusBarWindow.findViewById(R.id.date);
|
mDateView = (DateView)mStatusBarWindow.findViewById(R.id.date);
|
||||||
mSettingsButton = mStatusBarWindow.findViewById(R.id.settings_button);
|
mSettingsButton = mStatusBarWindow.findViewById(R.id.settings_button);
|
||||||
mSettingsButton.setOnClickListener(mSettingsButtonListener);
|
if (mSettingsButton != null) {
|
||||||
mRotationButton = (RotationToggle) mStatusBarWindow.findViewById(R.id.rotation_lock_button);
|
mSettingsButton.setOnClickListener(mSettingsButtonListener);
|
||||||
|
}
|
||||||
|
|
||||||
mScrollView = (ScrollView)mStatusBarWindow.findViewById(R.id.scroll);
|
mScrollView = (ScrollView)mStatusBarWindow.findViewById(R.id.scroll);
|
||||||
mScrollView.setVerticalScrollBarEnabled(false); // less drawing during pulldowns
|
mScrollView.setVerticalScrollBarEnabled(false); // less drawing during pulldowns
|
||||||
@@ -819,7 +819,9 @@ public class PhoneStatusBar extends BaseStatusBar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mSettingsButton.setEnabled(isDeviceProvisioned());
|
if (mSettingsButton != null) {
|
||||||
|
mSettingsButton.setEnabled(isDeviceProvisioned());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user