1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-15 09:30:30 +02:00
Gadgetbridge/app/src
MrYoranimo 0b731611b9 Xiaomi: refactor WidgetManager for Redmi Watch 4
The Redmi Watch 4 reports both an unsupported widget type and layout
style:

- The firmware supports a screen layout for a single full screens
  widget, which is defined by layout ID 128;
- A full screen widget is a single 2x2 part, which is not supported.

This commit adds support for both the new layout and the new widget
type.

Furthermore, this commit refactors the XiaomiWidgetManager. Previously,
the supported layouts were determined by the types of parts supported by
the device. However, the supported layouts are reported by the device
through a bitfield in the widget capabilities message of which the purpose
was unknown, which is now used to determine the supported layouts.
2024-04-12 20:54:49 +02:00
..
banglejs Move build variant-specific strings from build.gradle to separate resource files 2024-02-18 20:52:53 +00:00
banglejsNightly/res/values Move build variant-specific strings from build.gradle to separate resource files 2024-02-18 20:52:53 +00:00
main Xiaomi: refactor WidgetManager for Redmi Watch 4 2024-04-12 20:54:49 +02:00
mainline/res/values Move build variant-specific strings from build.gradle to separate resource files 2024-02-18 20:52:53 +00:00
nightly/res Add missing ic_launcher drawables in nightly 2024-02-18 20:52:53 +00:00
nopebble/res Move build variant-specific strings from build.gradle to separate resource files 2024-02-18 20:52:53 +00:00
test [Huawei] Fix long notification and clean Notifications class 2024-04-03 23:05:53 +02:00