MotoActions: Use common style from devicesettings
authordianlujitao <dianlujitao@lineageos.org>
Tue, 1 Feb 2022 09:29:29 +0000 (17:29 +0800)
committerNolen Johnson <johnsonnolen@gmail.com>
Sun, 13 Feb 2022 04:27:21 +0000 (23:27 -0500)
Change-Id: I613b106fec0b6580d08a0a580988007807958db2

MotoActions/AndroidManifest.xml
MotoActions/res/values/styles.xml [deleted file]
MotoActions/res/xml/actions_panel.xml
MotoActions/res/xml/doze_panel.xml

index 6287e6a63de5f2c3fcc3ed8345adeb9ff2eef243..7737d9077581b64ee11b9a00634f827f6ccb4388 100644 (file)
@@ -40,7 +40,7 @@
             android:name=".DozePreferenceActivity"
             android:exported="false"
             android:label="@string/ambient_display_gestures_title"
-            android:theme="@style/MotoActions">
+            android:theme="@style/Theme.Main">
             <intent-filter>
                 <action android:name="com.android.settings.action.IA_SETTINGS" />
             </intent-filter>
@@ -56,7 +56,7 @@
             android:name=".ActionsPreferenceActivity"
             android:exported="false"
             android:label="@string/moto_gestures_panel_title"
-            android:theme="@style/MotoActions">
+            android:theme="@style/Theme.Main">
             <intent-filter>
                 <action android:name="com.android.settings.action.IA_SETTINGS" />
             </intent-filter>
diff --git a/MotoActions/res/values/styles.xml b/MotoActions/res/values/styles.xml
deleted file mode 100644 (file)
index 06b8fbc..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-     Copyright (C) 2016 The CyanogenMod Project
-     Copyright (C) 2017 The LineageOS Project
-
-     Licensed under the Apache License, Version 2.0 (the "License");
-     you may not use this file except in compliance with the License.
-     You may obtain a copy of the License at
-
-          http://www.apache.org/licenses/LICENSE-2.0
-
-     Unless required by applicable law or agreed to in writing, software
-     distributed under the License is distributed on an "AS IS" BASIS,
-     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-     See the License for the specific language governing permissions and
-     limitations under the License.
--->
-<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
-    <style name="MotoActions" parent="@android:style/Theme.DeviceDefault.Settings">
-        <item name="preferenceTheme">@style/SettingsPreference</item>
-    </style>
-
-    <!-- Preferences -->
-    <style name="SettingsPreference">
-        <item name="allowDividerAbove">false</item>
-        <item name="allowDividerBelow">false</item>
-        <item name="singleLineTitle">false</item>
-    </style>
-</resources>
index 4860513a533ee0a72c33d913a910ae526430cc68..f366ea48540af3dd2fd8bbcb5e74bceb123cf103 100644 (file)
@@ -15,8 +15,7 @@
      See the License for the specific language governing permissions and
      limitations under the License.
 -->
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
-        xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
 
     <PreferenceCategory
         android:key="actions_key"
index 7e8db99176b1c3e39203b4274c521332174b24c6..656c182d54a618bf12771a041191ce012eb57923 100644 (file)
@@ -14,8 +14,7 @@
      See the License for the specific language governing permissions and
      limitations under the License.
 -->
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
-        xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
 
     <PreferenceCategory
         android:key="ambient_display_key"