From b34f95ac58cc62a40f49ccd1383f371667efe753 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 26 Jul 2019 09:44:01 +0200 Subject: [PATCH] fixing widget scrolling --- .../notes/pro/helpers/MyWidgetProvider.kt | 2 +- app/src/main/res/layout/widget.xml | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/MyWidgetProvider.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/MyWidgetProvider.kt index b9187fb8..d3050de8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/MyWidgetProvider.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/MyWidgetProvider.kt @@ -29,7 +29,7 @@ class MyWidgetProvider : AppWidgetProvider() { Thread { context.widgetsDB.getWidgets().forEach { val views = RemoteViews(context.packageName, R.layout.widget) - views.setBackgroundColor(R.id.frame_widget, context.config.widgetBgColor) + views.setBackgroundColor(R.id.notes_widget_holder, context.config.widgetBgColor) setupAppOpenIntent(context, views, R.id.notes_widget_holder, it) Intent(context, WidgetService::class.java).apply { diff --git a/app/src/main/res/layout/widget.xml b/app/src/main/res/layout/widget.xml index 61a82227..ea3e025f 100644 --- a/app/src/main/res/layout/widget.xml +++ b/app/src/main/res/layout/widget.xml @@ -1,20 +1,14 @@ - - - - - +