Fix issue where Google Voice shortcuts would disappear
Bug: 6449123 Change-Id: I1d8c314ec954caf332d10be927d16ee45f325df8
This commit is contained in:
parent
a5a771ca1f
commit
9ad005639e
|
@ -1089,7 +1089,9 @@ public class LauncherModel extends BroadcastReceiver {
|
|||
|
||||
// App shortcuts that used to be automatically added to Launcher
|
||||
// didn't always have the correct intent flags set, so do that here
|
||||
if (intent.getAction().equals(Intent.ACTION_MAIN) &&
|
||||
if (intent.getAction() != null &&
|
||||
intent.getCategories() != null &&
|
||||
intent.getAction().equals(Intent.ACTION_MAIN) &&
|
||||
intent.getCategories().contains(Intent.CATEGORY_LAUNCHER)) {
|
||||
intent.addFlags(
|
||||
Intent.FLAG_ACTIVITY_NEW_TASK |
|
||||
|
|
Loading…
Reference in New Issue