Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use appropriate notify method instead

Use notifyAppWidgetViewDataChanged(int[] appWidgetIds, int viewId)
instead of invoking notifyAppWidgetViewDataChanged(int appWidgetId,
int viewId) in the loop

Change-Id: Ic227640e720cc35a652c0a89d39f633bab338cc7
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
  • Loading branch information...
commit 21916b6f6b93646867badbd4dc290204d1d04ccf 1 parent 4283683
Roger Chen cxr514033970 authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/com/android/mms/widget/MmsWidgetProvider.java
6 src/com/android/mms/widget/MmsWidgetProvider.java
View
@@ -67,10 +67,8 @@ public void onReceive(Context context, Intent intent) {
MmsWidgetProvider.class));
// We need to update all Mms appwidgets on the home screen.
- for (int appWidgetId : appWidgetIds) {
- appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetId,
- R.id.conversation_list);
- }
+ appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetIds,
+ R.id.conversation_list);
} else {
super.onReceive(context, intent);
}
Please sign in to comment.
Something went wrong with that request. Please try again.