Skip to content

Commit

Permalink
fixing widget scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
tibbi committed Jul 26, 2019
1 parent 49f9de3 commit b34f95a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
14 changes: 4 additions & 10 deletions app/src/main/res/layout/widget.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/frame_widget"
android:id="@+id/notes_widget_holder"
android:layout_width="match_parent"
android:layout_height="match_parent">

<ListView
android:id="@+id/notes_widget_listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:divider="@null"/>

<RelativeLayout
android:id="@+id/notes_widget_holder"
android:layout_width="match_parent"
android:layout_height="match_parent">

</RelativeLayout>
</FrameLayout>
</RelativeLayout>

0 comments on commit b34f95a

Please sign in to comment.