Skip to content

Commit e5263ea

Browse files
committed
capability binding
1 parent 960d881 commit e5263ea

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

android/src/main/java/com/divyanshushekhar/flutter_shortcuts/MethodCallImplementation.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
import java.io.IOException;
2222
import java.util.ArrayList;
23+
import java.util.Arrays;
24+
import java.util.Collections;
2325
import java.util.HashMap;
2426
import java.util.List;
2527
import java.util.Map;
@@ -89,9 +91,6 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull MethodChannel.Result
8991
case "updateShortcutItem":
9092
updateShortcutItem(call);
9193
break;
92-
case "updateShortLabel":
93-
updateShortLabel(call);
94-
break;
9594
case "changeShortcutItemIcon":
9695
changeShortcutItemIcon(call);
9796
break;
@@ -229,12 +228,6 @@ private void updateShortcutItem(MethodCall call) {
229228
}
230229
}
231230

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-
238231
@RequiresApi(api = Build.VERSION_CODES.N_MR1)
239232
private void changeShortcutItemIcon(MethodCall call) {
240233
try {
@@ -319,6 +312,7 @@ private ShortcutInfoCompat buildShortcutUsingCompat(Map<String, String> shortcut
319312
return shortcutInfoCompat
320313
.setShortLabel(shortLabel)
321314
.setIntent(intent)
315+
.addCapabilityBinding("actions.intent.OPEN_APP_FEATURE")
322316
.build();
323317
}
324318

0 commit comments

Comments
 (0)