[2/3] OmniGears: button backlight support

Change-Id: Iae3d1819795d7c9a35aa64a5e86233480f32f016
diff --git a/res/xml/button_brightness_settings.xml b/res/xml/button_brightness_settings.xml
new file mode 100644
index 0000000..9904807
--- /dev/null
+++ b/res/xml/button_brightness_settings.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--  Copyright (C) 2014 The OmniROM Project
+
+  This program is free software: you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation, either version 2 of the License, or
+  (at your option) any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ -->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+        android:title="@string/button_brightness_title"
+        xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
+
+        <Preference
+                android:key="button_manual_brightness"
+                android:title="@string/button_manual_brightness" />
+        <CheckBoxPreference
+                android:key="button_no_brightness"
+                android:title="@string/button_no_brightness"
+                android:summary="@string/button_no_brightness_summary"
+                android:persistent="false"/>
+        <CheckBoxPreference
+                android:key="button_link_brightness"
+                android:title="@string/button_link_brightness"
+                android:summary="@string/button_link_brightness_summary"
+                android:persistent="false"/>
+        <com.android.settings.preference.SeekBarPreference
+                android:key="button_timeout"
+                android:title="@string/button_timeout_title"
+                android:summary="@string/button_timeout_summary"
+                android:max="30"
+                settings:min="0"
+                settings:unitsLeft=""
+                settings:unitsRight="@string/unit_sec"
+                android:persistent="false" />
+</PreferenceScreen>
diff --git a/res/xml/button_settings.xml b/res/xml/button_settings.xml
index e3ed32e..cd23ce1 100644
--- a/res/xml/button_settings.xml
+++ b/res/xml/button_settings.xml
@@ -96,14 +96,13 @@
             android:key="force_show_overflow_menu"
             android:title="@string/force_show_overflow_menu_title"
             android:summary="@string/force_show_overflow_menu_summary"
-            android:persistent="false"/>
+                android:persistent="false"/>-->
 
         <PreferenceScreen
             android:key="button_brightness"
-            android:title="@string/brightness"
+            android:title="@string/button_brightness_title"
             android:summary="@string/button_brightness_summary"
             android:fragment="org.omnirom.omnigears.brightness.ButtonBrightnessSettings" />
--->
 
         <SwitchPreference
             android:key="keys_enable_custom"