mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Making the parseAndAddDeepShortcut api private.
There is no need to expose this api. Missed the comment https://googleplex-android-review.git.corp.google.com/c/platform/packages/apps/Launcher3/+/17956680/comments/1c9b7443_cc54296d Test: Tested manually on device. Change-Id: If71e203f32a59fa59c406303411a37cba7b6c62e
This commit is contained in:
@@ -208,7 +208,7 @@ public class DefaultLayoutParser extends AutoInstallsLayout {
|
||||
* This method parses and adds a deep shortcut.
|
||||
* @return item id if the shortcut is successfully added else -1
|
||||
*/
|
||||
public int parseAndAddDeepShortcut(String shortcutId, String packageName) {
|
||||
private int parseAndAddDeepShortcut(String shortcutId, String packageName) {
|
||||
try {
|
||||
LauncherApps launcherApps = mContext.getSystemService(LauncherApps.class);
|
||||
launcherApps.pinShortcuts(packageName, Collections.singletonList(shortcutId),
|
||||
|
||||
Reference in New Issue
Block a user