Fix 2617318 - NPE in Launcher2.
Applies the fix in change Id91712fa to widgets. Bug: 2617318 Change-Id: I1e1dac6238a26497eacc23b161df171ae40bb588
This commit is contained in:
parent
68b4182d77
commit
e1cc6c3745
|
@ -1403,7 +1403,7 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag
|
|||
final LauncherAppWidgetInfo info = (LauncherAppWidgetInfo) tag;
|
||||
final AppWidgetProviderInfo provider =
|
||||
widgets.getAppWidgetInfo(info.appWidgetId);
|
||||
if (provider == null) {
|
||||
if (provider != null) {
|
||||
for (String packageName: packageNames) {
|
||||
if (packageName.equals(provider.provider.getPackageName())) {
|
||||
// TODO: This should probably be done on a worker thread
|
||||
|
|
Loading…
Reference in New Issue