sanders: LineageActions: Upgrade to Oreo Settings UI

* Attach to appropriate Settings pages
 * Hide divider lines to match Settings UI styles
 * Apply On/Off text on the switch bar toggle
 * Implement AOSP Settings preference layouts for indentation

 * Depends on android_packages_resources_devicesettings:
    "DeviceSettings: Import Oreo Settings layouts"
    Ib3f670b19c7e728b97fd76efe04bcc2f69008b06

 * Partially based upon commit "Bring DozeSettings up to date"
    I0850f7d9558a14f739f752f76002db993381a0e5 by Steve Kondik
    for the SwitchBar integration but using native themes

Change-Id: Ic5b8335aafc9ce876ed90a25045398e39515e484
Signed-off-by: Adrian DC <radian.dc@gmail.com>
Signed-off-by: jhenrique09 <jhenrique09.mcz@hotmail.com>
This commit is contained in:
AdrianDC
2017-10-23 14:38:48 -03:00
committed by therootlord
parent c0c11cd323
commit da5bdbbaca
23 changed files with 590 additions and 219 deletions

View File

@@ -19,10 +19,10 @@
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?android:attr/colorAccent">
android:tint="?android:attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:fillColor="#FFFFFFFF"
android:pathData="M4.7,6.9c0.7-0.7,1.4-1.4,1.7-1.2c0.5,0.2,0,1-0.3,1.5c-0.2,0.4-2.8,3.9-2.8,6.3c0,1.3,0.5,2.3,1.3,3
c0.7,0.6,1.7,0.7,2.6,0.5c1.1-0.3,1.9-1.4,3-2.8c1.2-1.5,2.8-3.4,4-3.4c1.6,0,1.6,1,1.7,1.8c-3.7,0.6-5.3,3.7-5.3,5.4
s1.4,3.1,3.2,3.1c1.6,0,4.3-1.3,4.6-6.1H21v-2.5h-2.4c-0.1-1.7-1.1-4.2-4-4.2c-2.2,0-4.1,1.9-4.9,2.8c-0.6,0.7-2,2.5-2.3,2.7