Skip to content

Commit

Permalink
Merge pull request #369 from RodrigoSMarques/bugfix
Browse files Browse the repository at this point in the history
PR Branch BUGFIX into DEV
  • Loading branch information
RodrigoSMarques authored Aug 28, 2024
2 parents 249c8df + c64193d commit dcaf81b
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -674,14 +674,14 @@ private void setRequestMetadata(MethodCall call) {
final String key = call.argument("key");
final String value = call.argument("value");

if (requestMetadata.has(key) && value.isEmpty()) {
requestMetadata.remove(key);
} else {
try {
requestMetadata.put(key, value);
} catch (JSONException error) {
}
return;
if (requestMetadata.has(key) && value.isEmpty()) {
requestMetadata.remove(key);
} else {
try {
requestMetadata.put(key, value);
} catch (JSONException error) {
}
return;
}
new Handler(Looper.getMainLooper()).post(new Runnable() {
@Override
Expand Down

1 comment on commit dcaf81b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.