From 9a6dbac68ccbb3c422447a8127c6444d37ca1214 Mon Sep 17 00:00:00 2001 From: My Name Date: Thu, 28 Apr 2022 05:11:01 +0000 Subject: [PATCH] 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 --- src/com/android/launcher3/DefaultLayoutParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/DefaultLayoutParser.java b/src/com/android/launcher3/DefaultLayoutParser.java index d8fba8bd91..4daca8b109 100644 --- a/src/com/android/launcher3/DefaultLayoutParser.java +++ b/src/com/android/launcher3/DefaultLayoutParser.java @@ -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),