Settings: Allow hiding power menu on lockscreen [2/2]

Change-Id: Iecb3bf993b40d3a0737dbd12e5be577cdc670cb1
diff --git a/res/values/leaf_strings.xml b/res/values/leaf_strings.xml
index 76ee790..c5ecadf 100644
--- a/res/values/leaf_strings.xml
+++ b/res/values/leaf_strings.xml
@@ -29,4 +29,7 @@
     <!-- Three-fingers-swipe to screenshot -->
     <string name="three_finger_gesture">Swipe to screenshot</string>
     <string name="three_finger_gesture_summary">Swipe down with three fingers to take a screenshot</string>
+
+   <!-- Hide power menu on lockscreen -->
+    <string name="hide_powermenu_lockscreen">Hide power menu on lockscreen</string>
 </resources>
diff --git a/res/xml/security_lockscreen_settings.xml b/res/xml/security_lockscreen_settings.xml
index 34b9e1a..967bf6c 100644
--- a/res/xml/security_lockscreen_settings.xml
+++ b/res/xml/security_lockscreen_settings.xml
@@ -79,6 +79,11 @@
             android:title="@string/lockscreen_double_line_clock_setting_toggle"
             android:summary="@string/lockscreen_double_line_clock_summary"
             settings:controller="com.android.settings.display.LockscreenClockPreferenceController" />
+
+        <com.android.settings.support.SystemSettingSwitchPreference
+            android:key="hide_powermenu_lockscreen"
+            android:title="@string/hide_powermenu_lockscreen"
+            android:defaultValue="false" />
     </PreferenceCategory>
 
     <PreferenceCategory