Skip to content

Commit

Permalink
fix the commissioning function of casting-video-player (#30736)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicelyjust authored and pull[bot] committed Feb 5, 2024
1 parent 52331bb commit 4576e6f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public void onReceive(Context context, Intent intent) {

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

sendResponseViaPendingIntent(context, intent, response);
} else {
int attributeId = intent.getIntExtra(MatterIntentConstants.EXTRA_ATTRIBUTE_ID, -1);
long attributeId = intent.getLongExtra(MatterIntentConstants.EXTRA_ATTRIBUTE_ID, -1);
String attributeAction =
intent.getStringExtra(MatterIntentConstants.EXTRA_ATTRIBUTE_ACTION);
if (attributeAction.equals(MatterIntentConstants.ATTRIBUTE_ACTION_READ)) {
Expand Down

0 comments on commit 4576e6f

Please sign in to comment.