|
20 | 20 |
|
21 | 21 | import java.io.IOException; |
22 | 22 | import java.util.ArrayList; |
| 23 | +import java.util.Arrays; |
| 24 | +import java.util.Collections; |
23 | 25 | import java.util.HashMap; |
24 | 26 | import java.util.List; |
25 | 27 | import java.util.Map; |
@@ -89,9 +91,6 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull MethodChannel.Result |
89 | 91 | case "updateShortcutItem": |
90 | 92 | updateShortcutItem(call); |
91 | 93 | break; |
92 | | - case "updateShortLabel": |
93 | | - updateShortLabel(call); |
94 | | - break; |
95 | 94 | case "changeShortcutItemIcon": |
96 | 95 | changeShortcutItemIcon(call); |
97 | 96 | break; |
@@ -229,12 +228,6 @@ private void updateShortcutItem(MethodCall call) { |
229 | 228 | } |
230 | 229 | } |
231 | 230 |
|
232 | | - private void updateShortLabel(MethodCall call) { |
233 | | - final List<String> args = call.arguments(); |
234 | | - final String refId = args.get(0); |
235 | | - final String title = args.get(1); |
236 | | - } |
237 | | - |
238 | 231 | @RequiresApi(api = Build.VERSION_CODES.N_MR1) |
239 | 232 | private void changeShortcutItemIcon(MethodCall call) { |
240 | 233 | try { |
@@ -319,6 +312,7 @@ private ShortcutInfoCompat buildShortcutUsingCompat(Map<String, String> shortcut |
319 | 312 | return shortcutInfoCompat |
320 | 313 | .setShortLabel(shortLabel) |
321 | 314 | .setIntent(intent) |
| 315 | + .addCapabilityBinding("actions.intent.OPEN_APP_FEATURE") |
322 | 316 | .build(); |
323 | 317 | } |
324 | 318 |
|
|
0 commit comments