mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
* commit '2561ee8453dc41a9d65f7890ea227416d7e8948c': Add null pointer checks to fix NPEs
This commit is contained in:
@@ -168,6 +168,7 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
|
||||
if (intent.getAction() == null) {
|
||||
intent.setAction(Intent.ACTION_VIEW);
|
||||
} else if (intent.getAction().equals(Intent.ACTION_MAIN) &&
|
||||
intent.getCategories() != null &&
|
||||
intent.getCategories().contains(Intent.CATEGORY_LAUNCHER)) {
|
||||
intent.addFlags(
|
||||
Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
|
||||
|
||||
Reference in New Issue
Block a user