sanders: LineageActions : Add Dirac Settings

Signed-off-by: utsavbalar1231 <utsavbalar1231@gmail.com>
Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
This commit is contained in:
Destiny911gtr
2019-05-10 04:50:44 +00:00
committed by ronaxdevil
parent b9f5ed218a
commit 5d5f67c232
4 changed files with 63 additions and 4 deletions

View File

@@ -95,7 +95,15 @@
android:label="@string/screen_off_gestures_title"
android:theme="@style/LineageActions">
</activity>
<!-- Dirac Sounds -->
<activity
android:name="org.lineageos.settings.dirac.DiracActivity"
android:label="@string/dirac_title"
android:theme="@style/LineageActions">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
</application>
</manifest>

View File

@@ -0,0 +1,27 @@
<!--
Copyright (C) 2016 The Android Open Source 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.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24.0dp"
android:height="24.0dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="?android:attr/colorControlNormal">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M3 10v4c0 .55 .45 1 1 1h3l3.29 3.29c.63 .63 1.71 .18
1.71-.71V6.41c0-.89-1.08-1.34-1.71-.71L7 9H4c-.55 0-1 .45-1 1zm13.5 2A4.5 4.5 0
0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 4.46v.19c0 .38 .25 .71 .61
.85C17.18 6.54 19 9.06 19 12s-1.82 5.46-4.39 6.5c-.36 .14 -.61 .47 -.61 .85
v.19c0 .63 .63 1.08 1.22 .86 a8.995 8.995 0 0 0 0-16.8c-.59-.23-1.22 .23 -1.22
.86 z"/>
</vector>

View File

@@ -92,9 +92,16 @@
<string name="allow_proximity_sensor_summary">Check the proximity sensor before performing the action</string>
<!-- Dirac settings -->
<string name="dirac_title">Dirac sound enhancer</string>
<string name="dirac_summary">Optimize audio quality</string>
<string name="dirac_headset_title">Choose headphone type</string>
<!-- Label for feature switch [CHAR LIMIT=30] -->
<string name="switch_bar_on">On</string>
<!-- Label for feature switch [CHAR LIMIT=30] -->
<string name="switch_bar_off">Off</string>
<string name="sound_title">Dirac-Settings</string>
<string name="dirac_title">Dirac Sound Enhancer</string>
<string name="dirac_summary">Optimize Audio Quality</string>
<string name="dirac_headset_title">Choose Headphone Type</string>
<string name="dirac_preset_title">Choose a preset</string>
<string name="dirac_headset_default">Default</string>
@@ -131,4 +138,8 @@
<string name="dirac_preset_country">Country</string>
<string name="dirac_preset_dance">Dance</string>
<string name="dirac_preset_metal">Metal</string>
<!-- Headers -->
<string name="diracheader">Dirac</string>
</resources>

View File

@@ -58,4 +58,17 @@
android:targetClass="org.lineageos.settings.device.ScreenOffGestureSettingsActivity" />
</Preference>
<PreferenceCategory
android:title="@string/diracheader">
<Preference
android:key="dirac"
android:title="@string/dirac_title"
android:summary="@string/dirac_summary"
android:icon="@drawable/ic_settings_dirac"
android:persistent="false" >
<intent
android:targetPackage="org.lineageos.settings.device"
android:targetClass="org.lineageos.settings.dirac.DiracActivity" />
</Preference>
</PreferenceCategory>
</PreferenceScreen>