Skip to content

Commit

Permalink
Update based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
aanorbel committed Dec 22, 2023
1 parent db37b06 commit ae929c8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ public void onCloseButtonClicked() {
* Extracts the run id from the provided Uri.
* The run id can be in two different formats:
* <p>
* 1. ooni://runv2/#link_id
* 2. https://run.test.ooni.org/v2/#link_id
* 1. ooni://runv2/link_id
* 2. https://run.test.ooni.org/v2/link_id
* <p>
* The run id is the `link_id` in the link.
* If the Uri contains a link, but the `link_id` is not a number, an empty Optional is returned.
Expand All @@ -330,7 +330,7 @@ private Optional<Long> getRunId(Uri uri) {
/**
* The run id is the first segment of the path.
* Launched when `Open Link in OONI Probe` is clicked.
* e.g. ooni://runv2/#link_id
* e.g. ooni://runv2/link_id
*/
return Optional.of(
Long.parseLong(
Expand All @@ -342,7 +342,7 @@ private Optional<Long> getRunId(Uri uri) {
* The run id is the second segment of the path.
* Launched when the system recognizes this app can open this link
* and launches the app when a link is clicked.
* e.g. https://run.test.ooni.org/v2/#link_id
* e.g. https://run.test.ooni.org/v2/link_id
*/
return Optional.of(
Long.parseLong(
Expand Down

0 comments on commit ae929c8

Please sign in to comment.