Skip to content

Commit

Permalink
Added action to size change receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Luis Urena committed Aug 28, 2018
1 parent 0a25c53 commit dc5b3cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private static void updateAppWidget(Context context, AppWidgetManager appWidgetM
@Override
public void onAppWidgetOptionsChanged(Context context, AppWidgetManager appWidgetManager, int appWidgetId, Bundle newOptions) {
int width = Util.dp2px(newOptions.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH));
Intent broadcastIntent = new Intent();
Intent broadcastIntent = new Intent(ACTION_REFRESH);
broadcastIntent.putExtra(KEY_SIZE_CHANGE, width);
context.sendBroadcast(broadcastIntent);
updateAppWidget(context, appWidgetManager, appWidgetId);
Expand Down

0 comments on commit dc5b3cc

Please sign in to comment.