Permalink
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...
1 parent 4283683 commit 21916b6f6b93646867badbd4dc290204d1d04ccf @cxr514033970 cxr514033970 committed Dec 17, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/com/android/mms/widget/MmsWidgetProvider.java
@@ -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);
}

0 comments on commit 21916b6

Please sign in to comment.