Skip to content

Commit 7df50f8

Browse files
committed
Added labels for widgets
Signed-off-by: Arnau Mora <[email protected]>
1 parent 2d4c3c0 commit 7df50f8

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

app/src/main/AndroidManifest.xml

+2
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@
280280

281281
<!-- Widgets -->
282282
<receiver android:name=".ui.widget.LabeledSyncButtonWidgetReceiver"
283+
android:label="@string/widget_labeled_sync_label"
283284
android:exported="true">
284285
<intent-filter>
285286
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
@@ -290,6 +291,7 @@
290291
android:resource="@xml/widget_info_labeled_sync_button" />
291292
</receiver>
292293
<receiver android:name=".ui.widget.IconSyncButtonWidgetReceiver"
294+
android:label="@string/widget_icon_sync_label"
293295
android:exported="true">
294296
<intent-filter>
295297
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />

app/src/main/res/values/strings.xml

+4
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,10 @@
507507
<!-- widgets -->
508508
<string name="widget_sync_all">Sync all</string>
509509
<string name="widget_sync_all_accounts">Sync all accounts</string>
510+
<string name="widget_labeled_sync_label">Labeled Sync Button</string>
511+
<string name="widget_labeled_sync_description">A simple button for running synchronization manually with an icon and a label.</string>
512+
<string name="widget_icon_sync_label">Icon Sync Button</string>
513+
<string name="widget_icon_sync_description">A circular button for running synchronization manually.</string>
510514

511515
<!-- cert4android -->
512516

app/src/main/res/xml/widget_info_icon_sync_button.xml

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
android:targetCellWidth="1"
88
android:targetCellHeight="1"
99
android:resizeMode="none"
10+
android:description="@string/widget_icon_sync_description"
1011
tools:ignore="UnusedAttribute">
1112
</appwidget-provider>

app/src/main/res/xml/widget_info_labeled_sync_button.xml

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
android:maxResizeWidth="250dp"
1010
android:maxResizeHeight="30dp"
1111
android:resizeMode="horizontal"
12+
android:description="@string/widget_labeled_sync_description"
1213
tools:ignore="UnusedAttribute">
1314
</appwidget-provider>

0 commit comments

Comments
 (0)