Skip to content

Commit

Permalink
Merge pull request #9100 from /issues/16361-1.26.x
Browse files Browse the repository at this point in the history
Fixes follow up of #13038 - swiping up ad notification doesn't trigger the dismiss event type - 1.26.x
  • Loading branch information
kjozwiak authored Jun 16, 2021
2 parents 596c4d6 + 4ac045e commit 44e98bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public boolean onTouch(View v, MotionEvent event) {
mAdsDialog = null;
BraveAdsNativeHelper.nativeOnCloseAdNotification(
Profile.getLastUsedRegularProfile(), mNotificationId,
false);
true);
mNotificationId = null;
} else if (deltaYDp <= MAX_DISTANCE_FOR_TAP
&& deltaYDp >= (-1 * MAX_DISTANCE_FOR_TAP)) {
Expand Down Expand Up @@ -170,9 +170,9 @@ private static void closeAdsNotification(final String notificationId) {
try {
if (mNotificationId != null && mNotificationId.equals(notificationId) && mAdsDialog != null) {
mAdsDialog.dismiss();
mAdsDialog = null;
BraveAdsNativeHelper.nativeOnCloseAdNotification(
Profile.getLastUsedRegularProfile(), mNotificationId, false);
mAdsDialog = null;
}
} catch (IllegalArgumentException e) {
mAdsDialog = null;
Expand Down

0 comments on commit 44e98bc

Please sign in to comment.