mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Fix 2595902 - NPE in launcher2
This code never worked. If you delete a live folder for an app that's been uninstalled, it would crash. Change-Id: Id91712fada8912addbc4892bd5ae517536fc4f24
This commit is contained in:
@@ -1316,7 +1316,7 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag
|
||||
final ProviderInfo providerInfo = manager.resolveContentProvider(
|
||||
uri.getAuthority(), 0);
|
||||
|
||||
if (providerInfo == null) {
|
||||
if (providerInfo != null) {
|
||||
for (String packageName: packageNames) {
|
||||
if (packageName.equals(providerInfo.packageName)) {
|
||||
// TODO: This should probably be done on a worker thread
|
||||
|
||||
Reference in New Issue
Block a user