List of usage examples for android.appwidget AppWidgetManager ACTION_APPWIDGET_OPTIONS_CHANGED
String ACTION_APPWIDGET_OPTIONS_CHANGED
To view the source code for android.appwidget AppWidgetManager ACTION_APPWIDGET_OPTIONS_CHANGED.
Click Source Link
From source file:org.solovyev.android.calculator.widget.CalculatorWidget.java
@Override public void onReceive(@Nonnull Context context, @Nonnull Intent intent) { cast(context).getComponent().inject(this); super.onReceive(context, intent); final String action = intent.getAction(); if (TextUtils.isEmpty(action)) { return;// www . j av a2 s. c o m } switch (action) { case ACTION_EDITOR_STATE_CHANGED: case ACTION_DISPLAY_STATE_CHANGED: updateWidget(context, true); break; case ACTION_CONFIGURATION_CHANGED: case ACTION_THEME_CHANGED: case ACTION_INIT: case AppWidgetManager.ACTION_APPWIDGET_UPDATE: case AppWidgetManager.ACTION_APPWIDGET_OPTIONS_CHANGED: updateWidget(context, false); break; } }