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:
kevios12 2023-04-25 22:25:31 +00:00
commit d5dfb76f87
3 changed files with 5 additions and 4 deletions

View file

@ -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"/>

View file

@ -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"/>

View file

@ -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