mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
universal7885: SamsungParts: FixUP - Dolby Change
* enable Dolby with Profile 8 for better Audio on boot by Default (User can still disable via QS Toggle / Parts settings) * Fix: DT2W is enabled on (first)boot but the toggle, if u doesn't touched them, was still disabled.
This commit is contained in:
parent
24826b4a64
commit
d5dfb76f87
3 changed files with 5 additions and 4 deletions
|
|
@ -6,7 +6,6 @@
|
|||
android:title="@string/dolby_enable_title"/>
|
||||
|
||||
<com.android.settingslib.widget.RadioButtonPreference
|
||||
android:defaultValue="true"
|
||||
android:key="dolby_profile_auto"
|
||||
android:title="@string/dolby_profile_auto"/>
|
||||
|
||||
|
|
@ -35,6 +34,7 @@
|
|||
android:title="@string/dolby_profile_off"/>
|
||||
|
||||
<com.android.settingslib.widget.RadioButtonPreference
|
||||
android:defaultValue="true"
|
||||
android:key="dolby_profile_spacial_audio"
|
||||
android:title="@string/dolby_profile_spacial_audio"/>
|
||||
|
||||
|
|
|
|||
|
|
@ -86,7 +86,8 @@
|
|||
android:targetClass="com.eurekateam.samsungextras.swap.SwapActivity"
|
||||
android:targetPackage="com.eurekateam.samsungextras"/>
|
||||
</Preference>
|
||||
<SwitchPreference
|
||||
<SwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:key="dt2w_settings"
|
||||
android:title="@string/dt2w_mode"
|
||||
android:persistent="true"/>
|
||||
|
|
|
|||
|
|
@ -31,11 +31,11 @@ class BootReceiver : BroadcastReceiver() {
|
|||
// Dolby
|
||||
DolbyCore.setEnabled(
|
||||
mSharedPreferences
|
||||
.getBoolean(DolbyFragment.PREF_DOLBY_ENABLE, false)
|
||||
.getBoolean(DolbyFragment.PREF_DOLBY_ENABLE, true)
|
||||
)
|
||||
DolbyCore.setProfile(
|
||||
mSharedPreferences
|
||||
.getInt(DolbyFragment.PREF_DOLBY_PROFILE, 0)
|
||||
.getInt(DolbyFragment.PREF_DOLBY_PROFILE, 8)
|
||||
)
|
||||
|
||||
// FlashLight
|
||||
|
|
|
|||
Loading…
Reference in a new issue