Skip to content

Commit

Permalink
Use nativeOnCloseAdNotification over nativeAdNotificationDismissed
Browse files Browse the repository at this point in the history
  • Loading branch information
yachtcaptain23 committed Apr 29, 2021
1 parent 53eba57 commit 890a8e5
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ public boolean onTouch(View v, MotionEvent event) {
if (deltaY > MIN_DISTANCE) {
mAdsDialog.dismiss();
mAdsDialog = null;
BraveAdsNativeHelper.nativeAdNotificationDismissed(
Profile.getLastUsedRegularProfile(), mNotificationId,
true);
BraveAdsNativeHelper.nativeOnCloseAdNotification(
Profile.getLastUsedRegularProfile(),
mNotificationId, false);
mNotificationId = null;
} else {
// Reset back to starting position
Expand Down Expand Up @@ -157,7 +157,8 @@ private static void closeAdsNotification(final String notificationId) {
try {
if (mNotificationId != null && mNotificationId.equals(notificationId) && mAdsDialog != null) {
mAdsDialog.dismiss();
BraveAdsNativeHelper.nativeAdNotificationDismissed(Profile.getLastUsedRegularProfile(), mNotificationId, false);
BraveAdsNativeHelper.nativeOnCloseAdNotification(
Profile.getLastUsedRegularProfile(), mNotificationId, false);
mAdsDialog = null;
}
} catch (IllegalArgumentException e) {
Expand Down

0 comments on commit 890a8e5

Please sign in to comment.