Skip to content

Commit b34f95a

Browse files
committed
fixing widget scrolling
1 parent 49f9de3 commit b34f95a

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/MyWidgetProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class MyWidgetProvider : AppWidgetProvider() {
2929
Thread {
3030
context.widgetsDB.getWidgets().forEach {
3131
val views = RemoteViews(context.packageName, R.layout.widget)
32-
views.setBackgroundColor(R.id.frame_widget, context.config.widgetBgColor)
32+
views.setBackgroundColor(R.id.notes_widget_holder, context.config.widgetBgColor)
3333
setupAppOpenIntent(context, views, R.id.notes_widget_holder, it)
3434

3535
Intent(context, WidgetService::class.java).apply {

app/src/main/res/layout/widget.xml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<FrameLayout
2+
<RelativeLayout
33
xmlns:android="http://schemas.android.com/apk/res/android"
4-
android:id="@+id/frame_widget"
4+
android:id="@+id/notes_widget_holder"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent">
77

88
<ListView
99
android:id="@+id/notes_widget_listview"
1010
android:layout_width="match_parent"
11-
android:layout_height="match_parent"
11+
android:layout_height="wrap_content"
1212
android:divider="@null"/>
1313

14-
<RelativeLayout
15-
android:id="@+id/notes_widget_holder"
16-
android:layout_width="match_parent"
17-
android:layout_height="match_parent">
18-
19-
</RelativeLayout>
20-
</FrameLayout>
14+
</RelativeLayout>

0 commit comments

Comments
 (0)