Skip to content

Commit

Permalink
Rename onOpenExternalLinkRequested
Browse files Browse the repository at this point in the history
  • Loading branch information
qnga committed Oct 5, 2023
1 parent 9a6d814 commit cd7eebe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ public interface HyperlinkNavigator : Navigator {
* Called when a link to an external URL was clicked in the navigator.
*/
@ExperimentalReadiumApi
public fun onOpenExternalLinkRequested(url: AbsoluteUrl)
public fun onExternalLinkClicked(url: AbsoluteUrl)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ internal class EpubNavigatorViewModel(
_events.send(Event.OpenInternalLink(link))
}
} else {
listener?.onOpenExternalLinkRequested(url)
listener?.onExternalLinkClicked(url)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ class ReaderViewModel(
}

// HyperlinkNavigator.Listener
override fun onOpenExternalLinkRequested(url: AbsoluteUrl) {
override fun onExternalLinkClicked(url: AbsoluteUrl) {
activityChannel.send(ActivityCommand.OpenExternalLink(url))
}

Expand Down

0 comments on commit cd7eebe

Please sign in to comment.