[2/2] OmniGears: Adds ability to answer call with hardware HOME button

Change-Id: I70871fd3a6168af76e309d310237e98fea33c4b5
diff --git a/res/values/custom_strings.xml b/res/values/custom_strings.xml
index 10cc2a9..1223f69 100644
--- a/res/values/custom_strings.xml
+++ b/res/values/custom_strings.xml
@@ -60,6 +60,8 @@
     <string name="keys_action_omniswitch">OmniSwitch recents</string>
     <string name="button_home_wake_title">Button wake</string>
     <string name="button_home_wake_summary">Pressing the home button will wake the device</string>
+    <string name="button_home_answers_call_title">Button answers call</string>
+    <string name="button_home_answers_call_summary">Pressing the home button will answer incoming call</string>
 
     <!-- Swap volume buttons when the screen is rotated -->
     <string name="swap_volume_buttons_title">Match rotation</string>
diff --git a/res/xml/button_settings.xml b/res/xml/button_settings.xml
index 28749c0..ac77426 100644
--- a/res/xml/button_settings.xml
+++ b/res/xml/button_settings.xml
@@ -171,6 +171,12 @@
             android:summary="@string/button_home_wake_summary"
             android:persistent="false"/>
 
+        <CheckBoxPreference
+            android:key="button_home_answers_call"
+            android:title="@string/button_home_answers_call_title"
+            android:summary="@string/button_home_answers_call_summary"
+            android:persistent="false" />
+
     </PreferenceCategory>
 
     <PreferenceCategory