Fix add shortcut (#1196)

This commit is contained in:
Howard Wu 2021-09-30 21:02:42 +08:00 committed by GitHub
parent 7f247bd38f
commit 047113ddaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -177,8 +177,8 @@ public class LSPManagerService extends ILSPManagerService.Stub {
} }
} }
} }
if (intent != null && intent.getCategories() != null) { if (intent != null) {
intent.getCategories().clear(); if (intent.getCategories() != null) intent.getCategories().clear();
intent.addCategory("org.lsposed.manager.LAUNCH_MANAGER"); intent.addCategory("org.lsposed.manager.LAUNCH_MANAGER");
intent.setPackage(BuildConfig.MANAGER_INJECTED_PKG_NAME); intent.setPackage(BuildConfig.MANAGER_INJECTED_PKG_NAME);
managerIntent = (Intent) intent.clone(); managerIntent = (Intent) intent.clone();