1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-25 11:26:47 +01:00

Xiaomi: Fix widget set on some devices

This commit is contained in:
José Rebelo 2023-12-12 18:45:44 +00:00
parent 128aed005b
commit 2d89fdf11b
2 changed files with 3 additions and 0 deletions

View File

@ -290,6 +290,8 @@ public class XiaomiWidgetManager implements WidgetManager {
} }
} }
builder.setIsFullList(1);
getPrefs().getPreferences().edit() getPrefs().getPreferences().edit()
.putString(XiaomiPreferences.PREF_WIDGET_SCREENS, GB.hexdump(builder.build().toByteArray())) .putString(XiaomiPreferences.PREF_WIDGET_SCREENS, GB.hexdump(builder.build().toByteArray()))
.apply(); .apply();

View File

@ -4,6 +4,7 @@ package xiaomi;
// FIXME: The generated class is very large, so Android Studio stops recognizing it // FIXME: The generated class is very large, so Android Studio stops recognizing it
// set idea.max.intellisense.filesize=5000 in idea.properties // set idea.max.intellisense.filesize=5000 in idea.properties
// by clicking Help -> Edit Custom Properties
option java_package = "nodomain.freeyourgadget.gadgetbridge.proto.xiaomi"; option java_package = "nodomain.freeyourgadget.gadgetbridge.proto.xiaomi";
option java_outer_classname = "XiaomiProto"; option java_outer_classname = "XiaomiProto";