Skip to content

Commit 1085371

Browse files
nicelyjustpull[bot]
authored andcommitted
fix the commissioning function of casting-video-player (#30736)
1 parent c3f96fe commit 1085371

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/tv-app/android/App/content-app/src/main/java/com/example/contentapp/receiver/MatterCommandReceiver.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public void onReceive(Context context, Intent intent) {
2828

2929
switch (intentAction) {
3030
case MatterIntentConstants.ACTION_MATTER_COMMAND:
31-
int commandId = intent.getIntExtra(MatterIntentConstants.EXTRA_COMMAND_ID, -1);
32-
int clusterId = intent.getIntExtra(MatterIntentConstants.EXTRA_CLUSTER_ID, -1);
31+
long commandId = intent.getLongExtra(MatterIntentConstants.EXTRA_COMMAND_ID, -1);
32+
long clusterId = intent.getLongExtra(MatterIntentConstants.EXTRA_CLUSTER_ID, -1);
3333
if (commandId != -1) {
3434
byte[] commandPayload =
3535
intent.getByteArrayExtra(MatterIntentConstants.EXTRA_COMMAND_PAYLOAD);
@@ -56,7 +56,7 @@ public void onReceive(Context context, Intent intent) {
5656

5757
sendResponseViaPendingIntent(context, intent, response);
5858
} else {
59-
int attributeId = intent.getIntExtra(MatterIntentConstants.EXTRA_ATTRIBUTE_ID, -1);
59+
long attributeId = intent.getLongExtra(MatterIntentConstants.EXTRA_ATTRIBUTE_ID, -1);
6060
String attributeAction =
6161
intent.getStringExtra(MatterIntentConstants.EXTRA_ATTRIBUTE_ACTION);
6262
if (attributeAction.equals(MatterIntentConstants.ATTRIBUTE_ACTION_READ)) {

0 commit comments

Comments
 (0)