LOCAL_CERTIFICATE := platform
LOCAL_STATIC_JAVA_LIBRARIES := \
- android-support-v14-preference \
+ android-support-v4 \
android-support-v7-appcompat \
android-support-v7-preference \
android-support-v7-recyclerview \
+ android-support-v13 \
+ android-support-v14-preference \
org.lineageos.platform.internal
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
LOCAL_RESOURCE_DIR := \
$(LOCAL_PATH)/res \
+ $(TOP)/packages/resources/devicesettings/res \
frameworks/support/v14/preference/res \
frameworks/support/v7/appcompat/res \
frameworks/support/v7/preference/res \
--extra-packages android.support.v7.preference \
--extra-packages android.support.v7.recyclerview
-include frameworks/base/packages/SettingsLib/common.mk
-
include $(BUILD_PACKAGE)
include $(call all-makefiles-under,$(LOCAL_PATH))
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
- android:label="@string/app_name">
+ android:label="@string/app_name"
+ android:theme="@style/Theme.Main">
<receiver android:name="org.lineageos.settings.device.BootCompletedReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<activity
android:name=".AdvancedDisplayActivity"
- android:label="@string/app_name"
- android:theme="@style/AdvancedDisplay">
+ android:label="@string/app_name">
<intent-filter>
<action android:name="com.android.settings.action.EXTRA_SETTINGS" />
</intent-filter>
- <meta-data
- android:name="com.android.settings.icon"
- android:resource="@drawable/ic_settings_advanced_display" />
<meta-data
android:name="com.android.settings.category"
- android:value="com.android.settings.category.device" />
+ android:value="com.android.settings.category.ia.display" />
+ <meta-data
+ android:name="com.android.settings.summary"
+ android:value="@string/summary_empty" />
</activity>
</application>
</manifest>
<resources>
<!-- ActionBar contentInsetStart -->
<dimen name="actionbar_subsettings_contentInsetStart">72dp</dimen>
+
+ <dimen name="settings_side_margin">0dip</dimen>
</resources>
<string name="mdnie_scenario_summary_head">Set the mDNIe scenario</string>
<string name="mdnie_negative_title_head">Negative mode</string>
<string name="mdnie_negative_summary_head">Enable/disable inverted colors</string>
+
+ <!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
+ <string name="summary_empty" translatable="false"></string>
</resources>
limitations under the License.
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
- <style name="AdvancedDisplay" parent="@android:style/Theme.Material.Settings">
- <item name="preferenceTheme">@android:style/Theme.Material.Settings</item>
+ <style name="Theme.Main" parent="@android:style/Theme.DeviceDefault.Settings">
+ <item name="preferenceCategoryStyle">@style/Theme.Main.PreferenceCategoryStyle</item>
+ <item name="preferenceFragmentStyle">@style/Theme.Main.PreferenceFragmentStyle</item>
+ <item name="preferenceStyle">@style/Theme.Main.PreferenceStyle</item>
+ <item name="preferenceTheme">@style/Theme.Main.PreferenceTheme</item>
+ <item name="dialogPreferenceStyle">@style/Theme.Main.DialogPreferenceStyle</item>
+ <item name="switchPreferenceStyle">@style/Theme.Main.SwitchPreferenceStyle</item>
+ </style>
+
+ <style name="Theme.Main.PreferenceCategoryStyle" parent="@*android:style/Preference.DeviceDefault.Category">
+ <item name="allowDividerAbove">true</item>
+ <item name="android:layout">@layout/preference_category_material_settings</item>
+ </style>
+
+ <style name="Theme.Main.PreferenceFragmentStyle" parent="@*android:style/PreferenceFragment.Material">
+ <item name="allowDividerAfterLastItem">false</item>
+ </style>
+
+ <style name="Theme.Main.PreferenceStyle" parent="@*android:style/Preference.DeviceDefault">
+ <item name="allowDividerAbove">false</item>
+ <item name="allowDividerBelow">true</item>
+ <item name="singleLineTitle">false</item>
+ <item name="android:layout">@layout/preference_material_settings</item>
+ </style>
+
+ <style name="Theme.Main.PreferenceTheme">
+ </style>
+
+ <style name="Theme.Main.DialogPreferenceStyle" parent="@*android:style/Preference.DeviceDefault.DialogPreference">
+ <item name="allowDividerAbove">false</item>
+ <item name="allowDividerBelow">true</item>
+ <item name="singleLineTitle">false</item>
+ <item name="android:iconSpaceReserved">true</item>
+ </style>
+
+ <style name="Theme.Main.SwitchPreferenceStyle" parent="@style/Theme.Main.PreferenceStyle">
+ <item name="widgetLayout">@*android:layout/preference_widget_switch</item>
</style>
</resources>
package org.lineageos.settings.device;
import android.os.Bundle;
+import android.preference.PreferenceActivity;
-import com.android.settingslib.drawer.SettingsDrawerActivity;
-
-public class AdvancedDisplayActivity extends SettingsDrawerActivity {
+public class AdvancedDisplayActivity extends PreferenceActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- getFragmentManager().beginTransaction().replace(R.id.content_frame,
+ getFragmentManager().beginTransaction().replace(android.R.id.content,
new AdvancedDisplayFragment()).commit();
}
}
--- /dev/null
+[
+ {
+ "repository": "android_packages_resources_devicesettings",
+ "target_path": "packages/resources/devicesettings"
+ }
+]