mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-02 18:00:12 +02:00
Merge branch 'widget_hot_fixes' of https://github.com/herou/Simple-Notes
This commit is contained in:
commit
af12e6dd35
@ -29,7 +29,7 @@ class MyWidgetProvider : AppWidgetProvider() {
|
|||||||
Thread {
|
Thread {
|
||||||
context.widgetsDB.getWidgets().forEach {
|
context.widgetsDB.getWidgets().forEach {
|
||||||
val views = RemoteViews(context.packageName, R.layout.widget)
|
val views = RemoteViews(context.packageName, R.layout.widget)
|
||||||
views.setBackgroundColor(R.id.notes_widget_holder, context.config.widgetBgColor)
|
views.setBackgroundColor(R.id.frame_widget, context.config.widgetBgColor)
|
||||||
setupAppOpenIntent(context, views, R.id.notes_widget_holder, it)
|
setupAppOpenIntent(context, views, R.id.notes_widget_holder, it)
|
||||||
|
|
||||||
Intent(context, WidgetService::class.java).apply {
|
Intent(context, WidgetService::class.java).apply {
|
||||||
|
@ -1,14 +1,20 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
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_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
<ListView
|
<ListView
|
||||||
android:id="@+id/notes_widget_listview"
|
android:id="@+id/notes_widget_listview"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:divider="@null"/>
|
android:divider="@null"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
<RelativeLayout
|
||||||
|
android:id="@+id/notes_widget_holder"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
</FrameLayout>
|
Loading…
x
Reference in New Issue
Block a user