MotoActions: Fix always on detection
authorJeferson Oliveira <jroliveira.oliveira301@gmail.com>
Fri, 8 Jan 2021 19:04:03 +0000 (20:04 +0100)
committerjro1979oliver <jroliveira.oliveira301@gmail.com>
Fri, 8 Jan 2021 19:13:58 +0000 (16:13 -0300)
* PreferenceCategory is removed since c9999dacb17c. Insert again to fix AOD.

Change-Id: I5b16317875ec6c0bce6463bcf853d9085dfc0087

MotoActions/res/xml/doze_panel.xml

index ca3221a736cf6597e0925fd8b8b3d88525717275..42cdbdbe98ab24651610db643605ef2f7a6661f4 100644 (file)
 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
         xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
 
-    <SwitchPreference
-        android:key="gesture_pick_up"
-        android:defaultValue="false"
-        android:title="@string/pick_up_gesture_title"
-        android:summary="@string/pick_up_gesture_summary"
-        android:icon="@drawable/ic_pickup" />
+    <PreferenceCategory
+        android:key="ambient_display_key"
+        android:title="@string/ambient_display_title">
 
-    <SwitchPreference
-        android:key="gesture_hand_wave"
-        android:defaultValue="false"
-        android:title="@string/hand_wave_gesture_title"
-        android:summary="@string/hand_wave_gesture_summary"
-        android:icon="@drawable/ic_hand" />
+       <SwitchPreference
+           android:key="gesture_pick_up"
+           android:defaultValue="false"
+           android:title="@string/pick_up_gesture_title"
+           android:summary="@string/pick_up_gesture_summary"
+           android:icon="@drawable/ic_pickup" />
+
+       <SwitchPreference
+           android:key="gesture_hand_wave"
+           android:defaultValue="false"
+           android:title="@string/hand_wave_gesture_title"
+           android:summary="@string/hand_wave_gesture_summary"
+           android:icon="@drawable/ic_hand" />
+    </PreferenceCategory>
 </PreferenceScreen>