diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-05-12 14:37:21 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-05-12 14:37:21 +0300 |
commit | 56c950c1843b84f953280f927b621a5a8f3b28e8 (patch) | |
tree | c5fbbbaf520c54acab0c65f1f4a3f4011e150bc2 /app/src/main/java/it/niedermann/nextcloud/deck/ui/widget | |
parent | 969409d2bfeef6636dde4d55a30e4d509fda2b77 (diff) |
#217 SingleCardWidget
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/widget')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/widget/singlecard/SingleCardWidget.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/widget/singlecard/SingleCardWidget.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/widget/singlecard/SingleCardWidget.java index 64b0c5c80..4a9d15069 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/widget/singlecard/SingleCardWidget.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/widget/singlecard/SingleCardWidget.java @@ -6,6 +6,7 @@ import android.appwidget.AppWidgetProvider; import android.content.ComponentName; import android.content.Context; import android.content.Intent; +import android.util.TypedValue; import android.view.View; import android.widget.RemoteViews; @@ -64,6 +65,9 @@ public class SingleCardWidget extends AppWidgetProvider { } else { views.setViewVisibility(R.id.card_count_tasks, View.GONE); } + TypedValue a = new TypedValue(); + context.getTheme().resolveAttribute(android.R.attr.background, a, true); + views.setInt(R.id.widget_card, "setBackgroundColor", a.data); awm.updateAppWidget(appWidgetId, views); } catch (NoSuchElementException e) { |