Skip to content

Commit

Permalink
Don't use local broadcast for widget provider
Browse files Browse the repository at this point in the history
  • Loading branch information
nevenz committed May 14, 2017
1 parent 53210e7 commit 342ad21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
android:label="@string/list_widget_name">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="com.orgzly.intent.action.ACTION_UPDATE_LIST_WIDGET" />
</intent-filter>
<meta-data android:name="android.appwidget.provider"
android:resource="@xml/list_widget_info" />
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/java/com/orgzly/android/Shelf.java
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,7 @@ public static void notifyDataChanged(Context context) {

ReminderService.notifyDataChanged(context);

LocalBroadcastManager.getInstance(context)
.sendBroadcast(new Intent(AppIntent.ACTION_LIST_WIDGET_UPDATE));
context.sendBroadcast(new Intent(AppIntent.ACTION_LIST_WIDGET_UPDATE));
}

public interface ReParsingNotesListener {
Expand Down

0 comments on commit 342ad21

Please sign in to comment.