Commit 75e3e478 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Merge branch '5381-fix_startup_crash' into 'master'

Add null check in duplicate widgets check

See merge request !93
parents 99f8bb10 f3d27a43
Pipeline #185962 passed with stage
in 9 minutes and 30 seconds
......@@ -424,6 +424,7 @@ public class LauncherActivity extends AppCompatActivity implements
Set<ComponentName> existingProviders = new HashSet<>();
for (int widgetId : widgetIds) {
AppWidgetProviderInfo info = mAppWidgetManager.getAppWidgetInfo(widgetId);
if (info == null) continue;
existingProviders.add(info.provider);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment