[core] Request create shortcut when using the secret code launch mana… (#1368)
* [core] Request create the shortcut when using the secret code launch manager and auto add shortcut is not disabled
This commit is contained in:
parent
59b59ab69d
commit
c0c1da28df
|
|
@ -191,9 +191,11 @@ public class LSPosedService extends ILSPosedService.Stub {
|
|||
var userInfo = ActivityManagerService.getCurrentUser();
|
||||
if (userInfo != null) {
|
||||
var userId = userInfo.id;
|
||||
if (userId == 0)
|
||||
if (userId == 0) {
|
||||
ActivityManagerService.startActivityAsUserWithFeature("android", null,
|
||||
intent, intent.getType(), null, null, 0, 0, null, null, userId);
|
||||
LSPManagerService.createOrUpdateShortcut(false);
|
||||
}
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
Log.e(TAG, "dispatch secret code received", e);
|
||||
|
|
|
|||
Loading…
Reference in New Issue