diff --git a/res/layout/preference_dialog_brightness.xml b/res/layout/preference_dialog_brightness.xml
deleted file mode 100644
index b3d62cb2492..00000000000
--- a/res/layout/preference_dialog_brightness.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/res/xml/display_settings.xml b/res/xml/display_settings.xml
index d14446ced99..0eb90d05249 100644
--- a/res/xml/display_settings.xml
+++ b/res/xml/display_settings.xml
@@ -19,9 +19,8 @@
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
+ android:persistent="false"/>
CREATOR =
- new Parcelable.Creator() {
-
- public SavedState createFromParcel(Parcel in) {
- return new SavedState(in);
- }
-
- public SavedState[] newArray(int size) {
- return new SavedState[size];
- }
- };
+ protected void onClick() {
+ Intent intent = new Intent(Intent.ACTION_SHOW_BRIGHTNESS_DIALOG);
+ getContext().sendBroadcastAsUser(intent, UserHandle.CURRENT_OR_SELF);
}
}
-