Search in sources :

Example 1 with WidgetProvider

use of org.fairphone.widgets.appswitcher.WidgetProvider in project Fairphone by Kwamecorp.

the class LauncherTransitionable method updateAppSwitcherWidgets.

public void updateAppSwitcherWidgets() {
    AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this);
    int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(this, WidgetProvider.class));
    if (appWidgetIds.length > 0) {
        new WidgetProvider().onUpdate(this, appWidgetManager, appWidgetIds);
    }
}
Also used : WidgetProvider(org.fairphone.widgets.appswitcher.WidgetProvider) AppWidgetManager(android.appwidget.AppWidgetManager) ComponentName(android.content.ComponentName)

Aggregations

AppWidgetManager (android.appwidget.AppWidgetManager)1 ComponentName (android.content.ComponentName)1 WidgetProvider (org.fairphone.widgets.appswitcher.WidgetProvider)1