AdvancedDisplay: reset to lineage-15.1

Change-Id: I571327467bccc88e7f63bf5b2fa6195ed5bf2170
This commit is contained in:
Shilin Victor 2019-02-26 20:59:39 +03:00
parent 07865c0821
commit 7705719fb7
111 changed files with 1538 additions and 1268 deletions

View file

@ -8,30 +8,24 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := AdvancedDisplay
LOCAL_CERTIFICATE := platform
LOCAL_STATIC_JAVA_LIBRARIES := \
android-support-v14-preference \
LOCAL_USE_AAPT2 := true
LOCAL_STATIC_ANDROID_LIBRARIES := \
android-support-v4 \
android-support-v7-appcompat \
android-support-v7-preference \
android-support-v7-recyclerview \
org.lineageos.platform.internal
android-support-v13 \
android-support-v14-preference
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
LOCAL_STATIC_JAVA_LIBRARIES := \
org.lineageos.platform.internal
LOCAL_RESOURCE_DIR := \
$(LOCAL_PATH)/res \
frameworks/support/v14/preference/res \
frameworks/support/v7/appcompat/res \
frameworks/support/v7/preference/res \
frameworks/support/v7/recyclerview/res
$(TOP)/packages/resources/devicesettings/res
LOCAL_AAPT_FLAGS := \
--auto-add-overlay \
--extra-packages android.support.v14.preference \
--extra-packages android.support.v7.appcompat \
--extra-packages android.support.v7.preference \
--extra-packages android.support.v7.recyclerview
include frameworks/base/packages/SettingsLib/common.mk
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)

View file

@ -6,7 +6,8 @@
<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" />
@ -16,17 +17,16 @@
<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>

View file

@ -24,7 +24,27 @@
<!-- mDNIe -->
<string name="mdnie_scenario_title_head">السيناريو</string>
<string name="mdnie_scenario_summary_head">تعيين السيناريو mDNIe</string>
<string name="mdnie_accessibility_title_head">وضع إمكانية الوصول</string>
<string name="mdnie_accessibility_summary_head">قم بتعيين وضع إمكانية الوصول mDNIe</string>
<!-- Scenario names -->
<string name="mdnie_scenario_ui">LineageOS (الافتراضي)</string>
<string name="mdnie_scenario_video">فيديو</string>
<string name="mdnie_scenario_video_warm">فيديو دافئ</string>
<string name="mdnie_scenario_video_cold">فيديو بارد</string>
<string name="mdnie_scenario_camera">الكاميرا</string>
<string name="mdnie_scenario_navigation">التنقل</string>
<string name="mdnie_scenario_gallery">المعرض</string>
<string name="mdnie_scenario_vt">مكالمة فيديو</string>
<string name="mdnie_scenario_browser">المتصفح</string>
<string name="mdnie_scenario_ebook">كتاب الكتروني</string>
<string name="mdnie_scenario_email">البريد الإلكتروني</string>
<string name="mdnie_scenario_tdmb">التلفزيون الرقمي</string>
<!-- Accessibility mode names -->
<string name="mdnie_accessibility_normal">عادي</string>
<string name="mdnie_accessibility_inverse">معكوس</string>
<string name="mdnie_accessibility_color_blind">عمى الألوان</string>
<string name="mdnie_accessibility_screen_curtain">حجب الشاشة</string>
<string name="mdnie_accessibility_grayscale">رمادي</string>
<string name="mdnie_accessibility_gray_negative">رمادي معكوس</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
</resources>

View file

@ -24,7 +24,27 @@
<!-- mDNIe -->
<string name="mdnie_scenario_title_head">Escenariu</string>
<string name="mdnie_scenario_summary_head">Afita l\'escenariu mDNIe</string>
<string name="mdnie_accessibility_title_head">Mou d\'accesibilidá</string>
<string name="mdnie_accessibility_summary_head">Afitar el mou d\'accesibilidá mDNIe</string>
<!-- Scenario names -->
<string name="mdnie_scenario_ui">LineageOS (por defeutu)</string>
<string name="mdnie_scenario_video">Videu</string>
<string name="mdnie_scenario_video_warm">Videu caldiu</string>
<string name="mdnie_scenario_video_cold">Videu fríu</string>
<string name="mdnie_scenario_camera">Cámara</string>
<string name="mdnie_scenario_navigation">Navegación</string>
<string name="mdnie_scenario_gallery">Galería</string>
<string name="mdnie_scenario_vt">Videollamada</string>
<string name="mdnie_scenario_browser">Restolador</string>
<string name="mdnie_scenario_ebook">Llibru electrónicu</string>
<string name="mdnie_scenario_email">Corréu electrónicu</string>
<string name="mdnie_scenario_tdmb">Televisión dixital</string>
<!-- Accessibility mode names -->
<string name="mdnie_accessibility_normal">Normal</string>
<string name="mdnie_accessibility_inverse">Invertíu</string>
<string name="mdnie_accessibility_color_blind">Daltónicu</string>
<string name="mdnie_accessibility_screen_curtain">Cortina de pantalla</string>
<string name="mdnie_accessibility_grayscale">Buxu</string>
<string name="mdnie_accessibility_gray_negative">Gris invertíu</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
</resources>

View file

@ -24,7 +24,27 @@
<!-- mDNIe -->
<string name="mdnie_scenario_title_head">Сценарий</string>
<string name="mdnie_scenario_summary_head">Избор на сценария mDNIe</string>
<string name="mdnie_accessibility_title_head">Режим на достъп</string>
<string name="mdnie_accessibility_summary_head">Задайте режим на достъп за mDNIe</string>
<!-- Scenario names -->
<string name="mdnie_scenario_ui">LineageOS (по подразбиране)</string>
<string name="mdnie_scenario_video">Видео</string>
<string name="mdnie_scenario_video_warm">Видео топло</string>
<string name="mdnie_scenario_video_cold">Видео студено</string>
<string name="mdnie_scenario_camera">Камера</string>
<string name="mdnie_scenario_navigation">Навигация</string>
<string name="mdnie_scenario_gallery">Галерия</string>
<string name="mdnie_scenario_vt">Видео разговор</string>
<string name="mdnie_scenario_browser">Браузър</string>
<string name="mdnie_scenario_ebook">Е-книга</string>
<string name="mdnie_scenario_email">Имейл</string>
<string name="mdnie_scenario_tdmb">Цифрова телевизия</string>
<!-- Accessibility mode names -->
<string name="mdnie_accessibility_normal">Нормален</string>
<string name="mdnie_accessibility_inverse">Обърнат</string>
<string name="mdnie_accessibility_color_blind">За далтонисти</string>
<string name="mdnie_accessibility_screen_curtain">Екранна завеса</string>
<string name="mdnie_accessibility_grayscale">Сив</string>
<string name="mdnie_accessibility_gray_negative">Обърнат сив</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
</resources>

View file

@ -18,8 +18,28 @@
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Screen Preference -->
<string name="category_screen_title">Sgrin</string>
<string name="screen_colors_title">Lliwiau</string>
<!-- mDNIe -->
<string name="mdnie_accessibility_title_head">Modd hygyrchedd</string>
<string name="mdnie_accessibility_summary_head">Gosod modd hygyrchedd mDNIe</string>
<!-- Scenario names -->
<string name="mdnie_scenario_ui">LineageOS (rhagosodiad)</string>
<string name="mdnie_scenario_video">Fideo</string>
<string name="mdnie_scenario_video_warm">Fideo cynnes</string>
<string name="mdnie_scenario_video_cold">Fideo oer</string>
<string name="mdnie_scenario_camera">Camera</string>
<string name="mdnie_scenario_navigation">Llywio</string>
<string name="mdnie_scenario_gallery">Oriel</string>
<string name="mdnie_scenario_vt">Galwad fideo</string>
<string name="mdnie_scenario_browser">Porwr</string>
<string name="mdnie_scenario_ebook">eLyfr</string>
<string name="mdnie_scenario_email">Ebost</string>
<string name="mdnie_scenario_tdmb">Teledu digidol</string>
<!-- Accessibility mode names -->
<string name="mdnie_accessibility_normal">Arferol</string>
<string name="mdnie_accessibility_inverse">Wedi\'i wrthdroi</string>
<string name="mdnie_accessibility_grayscale">Llwyd</string>
<string name="mdnie_accessibility_gray_negative">Llwyd wedi\'i wrthdroi</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
</resources>

View file

@ -24,6 +24,8 @@
<!-- mDNIe -->
<string name="mdnie_scenario_title_head">Szenario</string>
<string name="mdnie_scenario_summary_head">Wählen Sie das mDNIe-Szenario</string>
<string name="mdnie_accessibility_title_head">Barrierefreier Modus</string>
<string name="mdnie_accessibility_summary_head">mDNIe-Modus festlegen</string>
<!-- Scenario names -->
<string name="mdnie_scenario_ui">LineageOS (Standard)</string>
<string name="mdnie_scenario_video">Video</string>
@ -36,9 +38,13 @@
<string name="mdnie_scenario_browser">Browser</string>
<string name="mdnie_scenario_ebook">E-Book</string>
<string name="mdnie_scenario_email">E-Mail</string>
<string name="mdnie_scenario_tdmb">Digitales Fernsehen</string>
<!-- Accessibility mode names -->
<string name="mdnie_accessibility_normal">Normal</string>
<string name="mdnie_accessibility_inverse">Invertiert</string>
<string name="mdnie_accessibility_color_blind">Farbenblind</string>
<string name="mdnie_accessibility_screen_curtain">Bildschirmvorhang</string>
<string name="mdnie_accessibility_grayscale">Grau</string>
<string name="mdnie_accessibility_gray_negative">Grau invertiert</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
</resources>

View file

@ -24,7 +24,27 @@
<!-- mDNIe -->
<string name="mdnie_scenario_title_head">Escenario</string>
<string name="mdnie_scenario_summary_head">Establecer escenario mDNIe</string>
<string name="mdnie_accessibility_title_head">Modo de accesibilidad</string>
<string name="mdnie_accessibility_summary_head">Establecer el modo de accesibilidad mDNIe</string>
<!-- Scenario names -->
<string name="mdnie_scenario_ui">LineageOS (predefinido)</string>
<string name="mdnie_scenario_video">Vídeo</string>
<string name="mdnie_scenario_video_warm">Vídeo cálido</string>
<string name="mdnie_scenario_video_cold">Vídeo frío</string>
<string name="mdnie_scenario_camera">Cámara</string>
<string name="mdnie_scenario_navigation">Navegación</string>
<string name="mdnie_scenario_gallery">Galería</string>
<string name="mdnie_scenario_vt">Videollamada</string>
<string name="mdnie_scenario_browser">Navegador</string>
<string name="mdnie_scenario_ebook">Libro digital</string>
<string name="mdnie_scenario_email">Correo electrónico</string>
<string name="mdnie_scenario_tdmb">Televisión digital</string>
<!-- Accessibility mode names -->
<string name="mdnie_accessibility_normal">Normal</string>
<string name="mdnie_accessibility_inverse">Invertido</string>
<string name="mdnie_accessibility_color_blind">Daltónico</string>
<string name="mdnie_accessibility_screen_curtain">Cortina de pantalla</string>
<string name="mdnie_accessibility_grayscale">Gris</string>
<string name="mdnie_accessibility_gray_negative">Gris invertido</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
</resources>

View file

@ -24,7 +24,27 @@
<!-- mDNIe -->
<string name="mdnie_scenario_title_head">Skenaario</string>
<string name="mdnie_scenario_summary_head">Aseta mDNIe-skenaario</string>
<string name="mdnie_accessibility_title_head">Helppokäyttötila</string>
<string name="mdnie_accessibility_summary_head">Aseta mDNIe-tila</string>
<!-- Scenario names -->
<string name="mdnie_scenario_ui">LineageOS (oletus)</string>
<string name="mdnie_scenario_video">Video</string>
<string name="mdnie_scenario_video_warm">Video (lämmin)</string>
<string name="mdnie_scenario_video_cold">Video (kylmä)</string>
<string name="mdnie_scenario_camera">Kamera</string>
<string name="mdnie_scenario_navigation">Navigointi</string>
<string name="mdnie_scenario_gallery">Galleria</string>
<string name="mdnie_scenario_vt">Videopuhelu</string>
<string name="mdnie_scenario_browser">Selain</string>
<string name="mdnie_scenario_ebook">E-kirja</string>
<string name="mdnie_scenario_email">Sähköposti</string>
<string name="mdnie_scenario_tdmb">Digitaalinen televisio</string>
<!-- Accessibility mode names -->
<string name="mdnie_accessibility_normal">Normaali</string>
<string name="mdnie_accessibility_inverse">Käänteinen</string>
<string name="mdnie_accessibility_color_blind">Värisokea</string>
<string name="mdnie_accessibility_screen_curtain">Näyttöverho</string>
<string name="mdnie_accessibility_grayscale">Harmaa</string>
<string name="mdnie_accessibility_gray_negative">Harmaa (käänteinen)</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
</resources>

View file

@ -19,7 +19,27 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Screen Preference -->
<!-- mDNIe -->
<string name="mdnie_accessibility_title_head">Modh na so-inntrigeachd</string>
<string name="mdnie_accessibility_summary_head">Suidhich modh so-inntrigeachd mDNIe</string>
<!-- Scenario names -->
<string name="mdnie_scenario_ui">LineageOS (bun-roghainn)</string>
<string name="mdnie_scenario_video">Video</string>
<string name="mdnie_scenario_video_warm">Video blàth</string>
<string name="mdnie_scenario_video_cold">Video fuar</string>
<string name="mdnie_scenario_camera">Camara</string>
<string name="mdnie_scenario_navigation">Seòladaireachd</string>
<string name="mdnie_scenario_gallery">Gailearaidh</string>
<string name="mdnie_scenario_vt">Gairm video</string>
<string name="mdnie_scenario_browser">Brabhsair</string>
<string name="mdnie_scenario_ebook">Leabhar-d</string>
<string name="mdnie_scenario_email">Post-d</string>
<string name="mdnie_scenario_tdmb">Telebhisean digiteach</string>
<!-- Accessibility mode names -->
<string name="mdnie_accessibility_normal">Àbhaisteach</string>
<string name="mdnie_accessibility_inverse">Ais-thionndaichte</string>
<string name="mdnie_accessibility_color_blind">Dath-dhoille</string>
<string name="mdnie_accessibility_screen_curtain">Cùirtear sgrìn</string>
<string name="mdnie_accessibility_grayscale">Liath</string>
<string name="mdnie_accessibility_gray_negative">Liath ais-thionndaichte</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
</resources>

View file

@ -24,7 +24,27 @@
<!-- mDNIe -->
<string name="mdnie_scenario_title_head">Escenario</string>
<string name="mdnie_scenario_summary_head">Estabelecer o escenario mDNIe</string>
<string name="mdnie_accessibility_title_head">Modo de accesibilidade</string>
<string name="mdnie_accessibility_summary_head">Definir o modo de accesibilidade mDNIe</string>
<!-- Scenario names -->
<string name="mdnie_scenario_ui">LineageOS (predefinido)</string>
<string name="mdnie_scenario_video">Vídeo</string>
<string name="mdnie_scenario_video_warm">Vídeo cálido</string>
<string name="mdnie_scenario_video_cold">Vídeo frío</string>
<string name="mdnie_scenario_camera">Cámara</string>
<string name="mdnie_scenario_navigation">Navegación</string>
<string name="mdnie_scenario_gallery">Galería</string>
<string name="mdnie_scenario_vt">Videochamada</string>
<string name="mdnie_scenario_browser">Navegador</string>
<string name="mdnie_scenario_ebook">eBook</string>
<string name="mdnie_scenario_email">Correo electrónico</string>
<string name="mdnie_scenario_tdmb">Televisión dixital</string>
<!-- Accessibility mode names -->
<string name="mdnie_accessibility_normal">Normal</string>
<string name="mdnie_accessibility_inverse">Invertido</string>
<string name="mdnie_accessibility_color_blind">Daltónico</string>
<string name="mdnie_accessibility_screen_curtain">Cortina de pantalla</string>
<string name="mdnie_accessibility_grayscale">Gris</string>
<string name="mdnie_accessibility_gray_negative">Gris invertido</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
</resources>

View file

@ -24,13 +24,27 @@
<!-- mDNIe -->
<string name="mdnie_scenario_title_head">Skenario</string>
<string name="mdnie_scenario_summary_head">Setel skenario mDNIe</string>
<string name="mdnie_accessibility_title_head">Modus aksesibilitas</string>
<string name="mdnie_accessibility_summary_head">Setel modus aksesibilitas mDNIe</string>
<!-- Scenario names -->
<string name="mdnie_scenario_ui">LineageOS (standar)</string>
<string name="mdnie_scenario_video">Video</string>
<string name="mdnie_scenario_video_warm">Video (warna hangat)</string>
<string name="mdnie_scenario_video_cold">Video (warna sejuk)</string>
<string name="mdnie_scenario_camera">Kamera</string>
<string name="mdnie_scenario_navigation">Navigasi</string>
<string name="mdnie_scenario_gallery">Galeri</string>
<string name="mdnie_scenario_vt">Panggilan video</string>
<string name="mdnie_scenario_browser">Browser</string>
<string name="mdnie_scenario_ebook">eBook</string>
<string name="mdnie_scenario_email">E-mail</string>
<string name="mdnie_scenario_tdmb">Televisi digital</string>
<!-- Accessibility mode names -->
<string name="mdnie_accessibility_normal">Normal</string>
<string name="mdnie_accessibility_inverse">Terbalik</string>
<string name="mdnie_accessibility_color_blind">Buta warna</string>
<string name="mdnie_accessibility_screen_curtain">Tirai layar</string>
<string name="mdnie_accessibility_grayscale">Abu-abu</string>
<string name="mdnie_accessibility_gray_negative">Abu-abu terbalik</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
</resources>

View file

@ -28,6 +28,9 @@
<string name="mdnie_accessibility_summary_head">mDNIe 접근성 모드 설정</string>
<!-- Scenario names -->
<string name="mdnie_scenario_ui">LineageOS (기본값)</string>
<string name="mdnie_scenario_video">비디오</string>
<string name="mdnie_scenario_video_warm">비디오 (따뜻한 색)</string>
<string name="mdnie_scenario_video_cold">비디오 (차가운 색)</string>
<string name="mdnie_scenario_camera">카메라</string>
<string name="mdnie_scenario_navigation">내비게이션</string>
<string name="mdnie_scenario_gallery">갤러리</string>
@ -35,6 +38,13 @@
<string name="mdnie_scenario_browser">브라우저</string>
<string name="mdnie_scenario_ebook">전자책</string>
<string name="mdnie_scenario_email">이메일</string>
<string name="mdnie_scenario_tdmb">디지털 TV</string>
<!-- Accessibility mode names -->
<string name="mdnie_accessibility_normal">기본</string>
<string name="mdnie_accessibility_inverse">반전</string>
<string name="mdnie_accessibility_color_blind">색맹</string>
<string name="mdnie_accessibility_screen_curtain">화면 커튼</string>
<string name="mdnie_accessibility_grayscale">흑백</string>
<string name="mdnie_accessibility_gray_negative">흑백 반전</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
</resources>

View file

@ -24,7 +24,27 @@
<!-- mDNIe -->
<string name="mdnie_scenario_title_head">Scenerie</string>
<string name="mdnie_scenario_summary_head">Ustaw scenariusz mDNIe</string>
<string name="mdnie_accessibility_title_head">Ułatwienia dostępu</string>
<string name="mdnie_accessibility_summary_head">Ustaw tryb dostępności mDNIe</string>
<!-- Scenario names -->
<string name="mdnie_scenario_ui">LineageOS (domyślnie)</string>
<string name="mdnie_scenario_video">Wideo</string>
<string name="mdnie_scenario_video_warm">Ciepły film</string>
<string name="mdnie_scenario_video_cold">Zimny film</string>
<string name="mdnie_scenario_camera">Aparat</string>
<string name="mdnie_scenario_navigation">Nawigacja</string>
<string name="mdnie_scenario_gallery">Galeria</string>
<string name="mdnie_scenario_vt">Połączenie wideo</string>
<string name="mdnie_scenario_browser">Przeglądarka</string>
<string name="mdnie_scenario_ebook">eBook</string>
<string name="mdnie_scenario_email">E-mail</string>
<string name="mdnie_scenario_tdmb">Telewizja cyfrowa</string>
<!-- Accessibility mode names -->
<string name="mdnie_accessibility_normal">Normalny</string>
<string name="mdnie_accessibility_inverse">Odwrócony</string>
<string name="mdnie_accessibility_color_blind">Daltonizm</string>
<string name="mdnie_accessibility_screen_curtain">Kurtyna ekranowa</string>
<string name="mdnie_accessibility_grayscale">Szary</string>
<string name="mdnie_accessibility_gray_negative">Szary, odwrócony</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
</resources>

View file

@ -25,6 +25,7 @@
<string name="mdnie_scenario_title_head">Cenário</string>
<string name="mdnie_scenario_summary_head">Define o cenário mDNIe</string>
<string name="mdnie_accessibility_title_head">Modo de acessibilidade</string>
<string name="mdnie_accessibility_summary_head">Definir o modo de acessibilidade do mDNIe</string>
<!-- Scenario names -->
<string name="mdnie_scenario_ui">LineageOS (padrão)</string>
<string name="mdnie_scenario_video">Vídeo</string>
@ -35,11 +36,15 @@
<string name="mdnie_scenario_gallery">Galeria</string>
<string name="mdnie_scenario_vt">Chamada de vídeo</string>
<string name="mdnie_scenario_browser">Navegador</string>
<string name="mdnie_scenario_ebook">e-book</string>
<string name="mdnie_scenario_email">E-mail</string>
<string name="mdnie_scenario_tdmb">Televisão digital</string>
<!-- Accessibility mode names -->
<string name="mdnie_accessibility_normal">Normal</string>
<string name="mdnie_accessibility_inverse">Invertido</string>
<string name="mdnie_accessibility_color_blind">Daltônico</string>
<string name="mdnie_accessibility_screen_curtain">Filtro de tela</string>
<string name="mdnie_accessibility_grayscale">Cinza</string>
<string name="mdnie_accessibility_gray_negative">Cinza invertido</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
</resources>

View file

@ -43,7 +43,7 @@
<string name="mdnie_accessibility_normal">普通</string>
<string name="mdnie_accessibility_inverse">反色</string>
<string name="mdnie_accessibility_color_blind">色盲模式</string>
<string name="mdnie_accessibility_screen_curtain">屏幕遮</string>
<string name="mdnie_accessibility_screen_curtain">屏幕遮</string>
<string name="mdnie_accessibility_grayscale">灰度</string>
<string name="mdnie_accessibility_gray_negative">反色灰度</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012-2014 The CyanogenMod Project
Copyright (C) 2018 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.
@ -15,16 +16,15 @@
limitations under the License.
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string-array name="mdnie_scenario_entries">
<item>LineageOS (default)</item>
<item>UI</item>
<item>Video</item>
<item>Video warm</item>
<item>Video cold</item>
<item>Camera</item>
<item>Navigation</item>
<item>Gallery</item>
<item>VT</item>
<string-array name="mdnie_scenario_entries" translatable="false">
<item>@string/mdnie_scenario_ui</item>
<item>@string/mdnie_scenario_video</item>
<item>@string/mdnie_scenario_video_warm</item>
<item>@string/mdnie_scenario_video_cold</item>
<item>@string/mdnie_scenario_camera</item>
<item>@string/mdnie_scenario_navigation</item>
<item>@string/mdnie_scenario_gallery</item>
<item>@string/mdnie_scenario_vt</item>
</string-array>
<string-array name="mdnie_scenario_entries_values" translatable="false">
@ -36,12 +36,11 @@
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
</string-array>
<string-array name="mdnie_accessibility_entries" translatable="false">
<item>Normal</item>
<item>Inverted</item>
<item>@string/mdnie_accessibility_normal</item>
<item>@string/mdnie_accessibility_inverse</item>
</string-array>
<string-array name="mdnie_accessibility_entries_values" translatable="false">

View file

@ -17,4 +17,6 @@
<resources>
<!-- ActionBar contentInsetStart -->
<dimen name="actionbar_subsettings_contentInsetStart">72dp</dimen>
<dimen name="settings_side_margin">0dip</dimen>
</resources>

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012-2014 The CyanogenMod Project
Copyright (C) 2018 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.
@ -26,4 +27,29 @@
<string name="mdnie_scenario_summary_head">Set the mDNIe scenario</string>
<string name="mdnie_accessibility_title_head">Accessibility mode</string>
<string name="mdnie_accessibility_summary_head">Set the mDNIe accessibility mode</string>
<!-- Scenario names -->
<string name="mdnie_scenario_ui">LineageOS (default)</string>
<string name="mdnie_scenario_video">Video</string>
<string name="mdnie_scenario_video_warm">Video warm</string>
<string name="mdnie_scenario_video_cold">Video cold</string>
<string name="mdnie_scenario_camera">Camera</string>
<string name="mdnie_scenario_navigation">Navigation</string>
<string name="mdnie_scenario_gallery">Gallery</string>
<string name="mdnie_scenario_vt">Video call</string>
<string name="mdnie_scenario_browser">Browser</string>
<string name="mdnie_scenario_ebook">eBook</string>
<string name="mdnie_scenario_email">E-mail</string>
<string name="mdnie_scenario_tdmb">Digital television</string>
<!-- Accessibility mode names -->
<string name="mdnie_accessibility_normal">Normal</string>
<string name="mdnie_accessibility_inverse">Inverted</string>
<string name="mdnie_accessibility_color_blind">Color blind</string>
<string name="mdnie_accessibility_screen_curtain">Screen curtain</string>
<string name="mdnie_accessibility_grayscale">Gray</string>
<string name="mdnie_accessibility_gray_negative">Gray inverted</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
<string name="summary_empty" translatable="false"></string>
</resources>

View file

@ -16,7 +16,42 @@
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>

View file

@ -17,15 +17,14 @@
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();
}
}