mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
CMF Buds 2 Plus: Enable touch configuration
- Enable touch options - Add missing Play/Pause option to list
This commit is contained in:
+2
@@ -70,6 +70,8 @@ public class CmfBuds2PlusCoordinator extends AbstractEarCoordinator {
|
||||
@Override
|
||||
public boolean supportsLowLatency() { return true; }
|
||||
|
||||
@Override
|
||||
public boolean supportsTouchOptions() { return true; }
|
||||
@Override
|
||||
public boolean supportsSpatialAudio() { return true; }
|
||||
|
||||
|
||||
+1
-1
@@ -178,7 +178,7 @@ public class Ear1Support extends AbstractHeadphoneBTBRDeviceSupport {
|
||||
"set touch options " + config,
|
||||
nothingProtocol.encodeTouchOptions(config, prefs)
|
||||
);
|
||||
|
||||
break;
|
||||
case DeviceSettingsPreferenceConst.PREF_NOTHING_EAR1_SPATIAL_AUDIO:
|
||||
byte spatial = (byte)(prefs.getBoolean(DeviceSettingsPreferenceConst.PREF_NOTHING_EAR1_SPATIAL_AUDIO, false) ? 0x01 : 0x00);
|
||||
sendCommand("set spatial audio", nothingProtocol.encodeSpatialAudio(spatial));
|
||||
|
||||
+1
@@ -4,6 +4,7 @@ import androidx.annotation.Nullable;
|
||||
|
||||
public enum NothingTapAction {
|
||||
OFF(0x01),
|
||||
PLAY_PAUSE(0x02),
|
||||
PREVIOUS_TRACK(0x08),
|
||||
NEXT_TRACK(0x09),
|
||||
VOICE_ASSISTANT(0x0b),
|
||||
|
||||
@@ -4537,6 +4537,7 @@
|
||||
|
||||
<string-array name="cmf_buds_touch_tap_names">
|
||||
<item>@string/sony_button_mode_off</item>
|
||||
<item>@string/pref_media_playpause</item>
|
||||
<item>@string/pref_media_previous</item>
|
||||
<item>@string/pref_media_next</item>
|
||||
<item>@string/pref_media_volumeup</item>
|
||||
@@ -4549,6 +4550,7 @@
|
||||
</string-array>
|
||||
<string-array name="cmf_buds_touch_tap_values">
|
||||
<item>off</item>
|
||||
<item>play_pause</item>
|
||||
<item>previous_track</item>
|
||||
<item>next_track</item>
|
||||
<item>volume_up</item>
|
||||
|
||||
Reference in New Issue
Block a user