mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-26 03:46:49 +01:00
Prefs: make allow high MTU default to true.
It is 2023, it should work, if not it can be turned off. For newer devices with big firmwares and apps (like Mi Band 7), people just wonder how slow Gadgetbridge installs stuff...
This commit is contained in:
parent
7262197a34
commit
f80b873866
@ -317,7 +317,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
|
||||
builder.notify(rxCharacteristic, true);
|
||||
|
||||
Prefs devicePrefs = new Prefs(GBApplication.getDeviceSpecificSharedPrefs(gbDevice.getAddress()));
|
||||
allowHighMTU = devicePrefs.getBoolean(PREF_ALLOW_HIGH_MTU, false);
|
||||
allowHighMTU = devicePrefs.getBoolean(PREF_ALLOW_HIGH_MTU, true);
|
||||
|
||||
uartTx(builder, " \u0003"); // clear active line
|
||||
|
||||
|
@ -4142,7 +4142,7 @@ public abstract class HuamiSupport extends AbstractBTLEDeviceSupport implements
|
||||
|
||||
protected void setMtu(final int mtu) {
|
||||
final Prefs prefs = getDevicePrefs();
|
||||
if (!prefs.getBoolean(PREF_ALLOW_HIGH_MTU, false)) {
|
||||
if (!prefs.getBoolean(PREF_ALLOW_HIGH_MTU, true)) {
|
||||
LOG.warn("High MTU is not allowed, ignoring");
|
||||
return;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<SwitchPreference
|
||||
android:icon="@drawable/ic_mtu"
|
||||
android:defaultValue="false"
|
||||
android:defaultValue="true"
|
||||
android:key="allow_high_mtu"
|
||||
android:summary="@string/pref_summary_allow_high_mtu"
|
||||
android:title="@string/pref_title_allow_high_mtu" />
|
||||
|
Loading…
Reference in New Issue
Block a user