[1/2] Allow navigation bar home actions to be configurable

*) Adds options to nav bar settings category to allow config
   of long press and double tap actions.

*) Reuses the underlying framework settings for hardware home
   key action options.

*) Nav bar home config options are hidden if a hardware home key
   is present so that we don't duplicate home actions in two
   places (under navbar and home button).  Can happen if navbar
   is forced on.

Change-Id: I8caaa7bf75fa11d08afd6408f8df00e696b1fafa
diff --git a/res/values/strings.xml b/res/values/strings.xml
index f73aec2..4170e35 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -223,6 +223,8 @@
     <string name="navigation_bar_left_summary">Place the navigation bar on the left side of the screen in landscape mode</string>
     <string name="navigation_bar_arrow_keys_title">Show arrow keys while typing</string>
     <string name="navigation_bar_arrow_keys_summary">Display left and right cursor buttons while typing. Overrides IME switcher.</string>
+    <string name="navigation_bar_home_long_press_title">Home long press action</string>
+    <string name="navigation_bar_home_double_tap_title">Home double tap action</string>
     <string name="navigation_bar_recents_title">Recents long press action</string>
 
     <!-- Power menu -->
diff --git a/res/xml/button_settings.xml b/res/xml/button_settings.xml
index de9c062..c587fca 100644
--- a/res/xml/button_settings.xml
+++ b/res/xml/button_settings.xml
@@ -53,6 +53,22 @@
         </PreferenceScreen>
 
         <ListPreference
+            android:key="navigation_home_long_press"
+            android:dialogTitle="@string/navigation_bar_home_long_press_title"
+            android:title="@string/navigation_bar_home_long_press_title"
+            android:entries="@array/hardware_keys_action_entries"
+            android:entryValues="@array/hardware_keys_action_values"
+            android:persistent="false" />
+
+        <ListPreference
+            android:key="navigation_home_double_tap"
+            android:dialogTitle="@string/navigation_bar_home_double_tap_title"
+            android:title="@string/navigation_bar_home_double_tap_title"
+            android:entries="@array/hardware_keys_action_entries"
+            android:entryValues="@array/hardware_keys_action_values"
+            android:persistent="false" />
+
+        <ListPreference
             android:key="navigation_recents_long_press"
             android:dialogTitle="@string/navigation_bar_recents_title"
             android:title="@string/navigation_bar_recents_title"