Search in sources :

Example 1 with WidgetsModel

use of com.android.launcher3.model.WidgetsModel in project android_packages_apps_Launcher3 by AOSPA.

the class LauncherPreviewRenderer method inflateAndAddWidgets.

private void inflateAndAddWidgets(LauncherAppWidgetInfo info, WidgetsModel widgetsModel) {
    WidgetItem widgetItem = widgetsModel.getWidgetProviderInfoByProviderName(info.providerName, info.user);
    if (widgetItem == null) {
        return;
    }
    inflateAndAddWidgets(info, widgetItem.widgetInfo);
}
Also used : WidgetItem(com.android.launcher3.model.WidgetItem)

Example 2 with WidgetsModel

use of com.android.launcher3.model.WidgetsModel in project android_packages_apps_Launcher3 by ProtonAOSP.

the class LauncherPreviewRenderer method inflateAndAddWidgets.

private void inflateAndAddWidgets(LauncherAppWidgetInfo info, WidgetsModel widgetsModel) {
    WidgetItem widgetItem = widgetsModel.getWidgetProviderInfoByProviderName(info.providerName, info.user);
    if (widgetItem == null) {
        return;
    }
    inflateAndAddWidgets(info, widgetItem.widgetInfo);
}
Also used : WidgetItem(com.android.launcher3.model.WidgetItem)

Example 3 with WidgetsModel

use of com.android.launcher3.model.WidgetsModel in project android_packages_apps_404Launcher by P-404.

the class LauncherPreviewRenderer method inflateAndAddWidgets.

private void inflateAndAddWidgets(LauncherAppWidgetInfo info, WidgetsModel widgetsModel) {
    WidgetItem widgetItem = widgetsModel.getWidgetProviderInfoByProviderName(info.providerName, info.user);
    if (widgetItem == null) {
        return;
    }
    inflateAndAddWidgets(info, widgetItem.widgetInfo);
}
Also used : WidgetItem(com.android.launcher3.model.WidgetItem)

Example 4 with WidgetsModel

use of com.android.launcher3.model.WidgetsModel in project android_packages_apps_Launcher3 by crdroidandroid.

the class LauncherPreviewRenderer method inflateAndAddWidgets.

private void inflateAndAddWidgets(LauncherAppWidgetInfo info, WidgetsModel widgetsModel) {
    WidgetItem widgetItem = widgetsModel.getWidgetProviderInfoByProviderName(info.providerName);
    if (widgetItem == null) {
        return;
    }
    inflateAndAddWidgets(info, widgetItem.widgetInfo);
}
Also used : WidgetItem(com.android.launcher3.model.WidgetItem)

Example 5 with WidgetsModel

use of com.android.launcher3.model.WidgetsModel in project android_packages_apps_Launcher3 by ArrowOS.

the class LauncherPreviewRenderer method inflateAndAddWidgets.

private void inflateAndAddWidgets(LauncherAppWidgetInfo info, WidgetsModel widgetsModel) {
    WidgetItem widgetItem = widgetsModel.getWidgetProviderInfoByProviderName(info.providerName, info.user);
    if (widgetItem == null) {
        return;
    }
    inflateAndAddWidgets(info, widgetItem.widgetInfo);
}
Also used : WidgetItem(com.android.launcher3.model.WidgetItem)

Aggregations

WidgetItem (com.android.launcher3.model.WidgetItem)5