mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-27 08:47:03 +02:00
Soundcore: Finetuning UI
This commit is contained in:
parent
ea079c2467
commit
4db8e2e72e
@ -69,6 +69,7 @@ public class SoundcoreLiberty3ProCoordinator extends AbstractDeviceCoordinator {
|
||||
public DeviceSpecificSettings getDeviceSpecificSettings(final GBDevice device) {
|
||||
final DeviceSpecificSettings deviceSpecificSettings = new DeviceSpecificSettings();
|
||||
deviceSpecificSettings.addRootScreen(DeviceSpecificSettingsScreen.TOUCH_OPTIONS);
|
||||
deviceSpecificSettings.addSubScreen(DeviceSpecificSettingsScreen.TOUCH_OPTIONS, R.xml.devicesettings_sony_headphones_ambient_sound_control_button_modes);
|
||||
deviceSpecificSettings.addSubScreen(DeviceSpecificSettingsScreen.TOUCH_OPTIONS, R.xml.devicesettings_soundcore_touch_options);
|
||||
deviceSpecificSettings.addRootScreen(R.xml.devicesettings_soundcore_headphones);
|
||||
return deviceSpecificSettings;
|
||||
|
@ -86,7 +86,6 @@ public class SoundcoreLibertyProtocol extends GBDeviceProtocol {
|
||||
} else if (Arrays.equals(command, new byte[]{0x06, 0x01})) { //Sound Mode Update
|
||||
decodeAudioMode(data);
|
||||
} else if (Arrays.equals(command, new byte[]{0x01, 0x03})) { // Battery Update
|
||||
// unsure which battery is left and which is right
|
||||
int batteryLeft = data[1] * 20;
|
||||
int batteryRight = data[2] * 20;
|
||||
int batteryCase = data[3] * 20;
|
||||
|
@ -29,7 +29,7 @@
|
||||
android:icon="@drawable/ic_hearing"
|
||||
android:key="pref_sony_ambient_sound_level"
|
||||
android:max="2"
|
||||
android:title="@string/sony_ambient_sound_level" />
|
||||
android:title="@string/prefs_active_noise_cancelling_level" />
|
||||
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
|
@ -1,14 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<ListPreference
|
||||
android:defaultValue="nc_as_off"
|
||||
android:entries="@array/sony_ambient_sound_control_button_mode_names"
|
||||
android:entryValues="@array/sony_ambient_sound_control_button_mode_values"
|
||||
android:icon="@drawable/ic_touch"
|
||||
android:key="pref_sony_ambient_sound_control_button_mode"
|
||||
android:summary="%s"
|
||||
android:title="@string/sony_ambient_sound_control_button_modes" />
|
||||
|
||||
<PreferenceCategory android:title="@string/single_tap">
|
||||
<SwitchPreferenceCompat
|
||||
android:defaultValue="false"
|
||||
|
Loading…
Reference in New Issue
Block a user