Skip to content

Commit

Permalink
Merge cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
LTPhantom committed May 3, 2024
1 parent 584ef48 commit c540d5f
Showing 1 changed file with 0 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,30 +146,6 @@ public void onConsentInfoUpdateFailure(FormError error) {
result.success(2);
}
break;
case "UserMessagingPlatform#loadAndShowConsentFormIfRequired":
if (activity == null) {
result.error(
INTERNAL_ERROR_CODE,
"ConsentInformation#requestConsentInfoUpdate called before plugin has been registered to an activity.",
null);
break;
}
UserMessagingPlatform.loadAndShowConsentFormIfRequired(
activity,
loadAndShowError -> {
if (loadAndShowError != null) {
// Consent gathering failed.
result.error(
Integer.toString(loadAndShowError.getErrorCode()),
loadAndShowError.getMessage(),
null);
return;
}
result.success(null);
});
case "ConsentInformation#canRequestAds":
result.success(getConsentInformation().canRequestAds());
break;
case "UserMessagingPlatform#loadAndShowConsentFormIfRequired":
if (activity == null) {
result.error(
Expand Down Expand Up @@ -216,25 +192,6 @@ public void onConsentFormLoadFailure(FormError formError) {
result.success(loadAndShowError);
});
break;
case "ConsentInformation#isConsentFormAvailable":
{
result.success(getConsentInformation().isConsentFormAvailable());
break;
}
UserMessagingPlatform.showPrivacyOptionsForm(
activity,
loadAndShowError -> {
if (loadAndShowError != null) {
// Consent gathering failed.
result.error(
Integer.toString(loadAndShowError.getErrorCode()),
loadAndShowError.getMessage(),
null);
return;
}
result.success(null);
});
break;
case "ConsentInformation#isConsentFormAvailable":
{
result.success(getConsentInformation().isConsentFormAvailable());
Expand Down

0 comments on commit c540d5f

Please sign in to comment.