mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Fixed weird NPE in some oem adding widget (#3931)
This commit is contained in:
@@ -1537,6 +1537,9 @@ public class Launcher extends StatefulActivity<LauncherState>
|
||||
hostView = mAppWidgetHolder.createView(this, appWidgetId, appWidgetInfo);
|
||||
}
|
||||
|
||||
if (appWidgetInfo.provider == null) {
|
||||
appWidgetInfo.provider = itemInfo.getTargetComponent();
|
||||
}
|
||||
LauncherAppWidgetInfo launcherInfo;
|
||||
launcherInfo = new LauncherAppWidgetInfo(
|
||||
appWidgetId, appWidgetInfo.provider, appWidgetInfo, hostView);
|
||||
|
||||
Reference in New Issue
Block a user