Search in sources :

Example 1 with GoogleAppsInstallerWidget

use of org.fairphone.widgets.gapps.GoogleAppsInstallerWidget in project Fairphone by Kwamecorp.

the class LauncherTransitionable method updateGoogleAppsIntallerWidgets.

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

Example 2 with GoogleAppsInstallerWidget

use of org.fairphone.widgets.gapps.GoogleAppsInstallerWidget in project Fairphone by Kwamecorp.

the class GappsInstallerHelper method updateGoogleAppsIntallerWidgets.

private void updateGoogleAppsIntallerWidgets() {
    AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(mContext);
    int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(mContext, GoogleAppsInstallerWidget.class));
    if (appWidgetIds.length > 0) {
        new GoogleAppsInstallerWidget().onUpdate(mContext, appWidgetManager, appWidgetIds);
    }
}
Also used : GoogleAppsInstallerWidget(org.fairphone.widgets.gapps.GoogleAppsInstallerWidget) AppWidgetManager(android.appwidget.AppWidgetManager) ComponentName(android.content.ComponentName)

Aggregations

AppWidgetManager (android.appwidget.AppWidgetManager)2 ComponentName (android.content.ComponentName)2 GoogleAppsInstallerWidget (org.fairphone.widgets.gapps.GoogleAppsInstallerWidget)2