Home-screen widget 1x1: unread DMs, unread channels, companion battery
build / build (push) Successful in 16m14s
build / build (push) Successful in 16m14s
A terminal-style Android widget (UnreadWidget.kt):
dm 3
ch 12
bt 87%
Counts turn green when non-zero, the battery red at 20 % and grey when
the companion is disconnected (last known level kept). Tapping opens the
app. HomeWidgetBridge pushes the values over a method channel only when
they change; they are kept in SharedPreferences so the widget survives
the app being closed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b47afe7854
commit
36806e289d
8 files changed
+235
No files matched your search
@@ -34,6 +34,18 @@
|
||||
<receiver
|
||||
android:name="com.dexterous.flutterlocalnotifications.ActionBroadcastReceiver"
|
||||
android:exported="false" />
|
||||
<!-- tth fork: 1x1 home-screen widget, unread messages + battery -->
|
||||
<receiver
|
||||
android:name=".UnreadWidget"
|
||||
android:label="MeshCore unread"
|
||||
android:exported="false">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
||||
</intent-filter>
|
||||
<meta-data
|
||||
android:name="android.appwidget.provider"
|
||||
android:resource="@xml/unread_widget_info" />
|
||||
</receiver>
|
||||
<!-- Android Auto: message notifications can be read aloud and replied to -->
|
||||
<meta-data
|
||||
android:name="com.google.android.gms.car.application"
|
||||
|
||||
Reference in new issue
Block a user