OSDN Git Service

Don't delete legacy shortcuts in loadWorkspace()
authorTony Wickham <twickham@google.com>
Thu, 4 May 2017 22:39:43 +0000 (15:39 -0700)
committerTony Wickham <twickham@google.com>
Fri, 5 May 2017 00:08:30 +0000 (17:08 -0700)
commit431a71320cbca331cc8a1d9004e20c73730ea018
treeff2a45f77a47bfad4e369693759d0096ce6cf425
parent8f4a3963b0bc0f98773bf34a3ff2989677d43e96
Don't delete legacy shortcuts in loadWorkspace()

Legacy 1x1 shortcut intents have null package names.
This was causing an NPE when calling LauncherApps#getApplicationInfo(),
which caused those shortcuts to be removed from the workspace.

Bug: 37634887
Change-Id: I6d9876ee1634a573c1f0f94602ae373365cab01c
src/com/android/launcher3/LauncherModel.java