Skip to content

Commit

Permalink
remove modal closed event
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinpaypal committed May 13, 2024
1 parent d19d27f commit c0fb935
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
5 changes: 1 addition & 4 deletions library/src/main/java/com/paypal/messages/ModalFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,7 @@ internal class ModalFragment(
val colorInt = Color.parseColor(this.closeButtonData?.color)
closeButton.background.colorFilter = PorterDuffColorFilter(colorInt, PorterDuff.Mode.SRC_ATOP)

closeButton?.setOnClickListener {
logEvent(AnalyticsEvent(eventType = EventType.MODAL_CLOSED))
dialog?.hide()
}
closeButton?.setOnClickListener { dialog?.hide() }

// If we already have a WebView, don't reset it
LogCat.debug(TAG, "Configuring WebView Settings and Handlers")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ enum class EventType {
@SerializedName("modal_viewed")
MODAL_VIEWED,

@SerializedName("modal_closed")
MODAL_CLOSED,

@SerializedName("modal_error")
MODAL_ERROR,
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ class EventTypeTest {
assertEquals(EventType.MODAL_VIEWED.toString(), "modal_viewed")
}

@Test
fun testModalClose() {
assertEquals(EventType.MODAL_CLOSED.toString(), "modal_closed")
}

@Test
fun testModalError() {
assertEquals(EventType.MODAL_ERROR.toString(), "modal_error")
Expand Down

0 comments on commit c0fb935

Please sign in to comment.