Skip to content

Commit

Permalink
add a 3 dot menu No buses? for future reference
Browse files Browse the repository at this point in the history
  • Loading branch information
epicstar committed May 24, 2017
1 parent 768c5c8 commit 7bdcce5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,4 +460,14 @@ public void onClickDetourInfo(MenuItem item) {
public void onClickAppDetails(MenuItem item) {
openPermissionsPage();
}

private void openNoBusesWebpage() {
Uri url = Uri.parse("https://github.com/rectangle-dbmi/Realtime-Port-Authority/wiki/Port-Authority-Server-Downtimes");
Intent internetBrowser = new Intent(Intent.ACTION_VIEW, url);
startActivity(internetBrowser);
}

public void onClickNoBuses(MenuItem item) {
openNoBusesWebpage();
}
}
5 changes: 5 additions & 0 deletions app/src/main/res/menu/select_transit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@
android:title="@string/action_about"
android:orderInCategory="400"
appcompat:showAsAction="never" />
<item android:id="@+id/no_buses"
android:title="@string/servers_down_title"
android:orderInCategory="500"
appcompat:showAsAction="never"
android:onClick="onClickNoBuses"/>

</menu>

0 comments on commit 7bdcce5

Please sign in to comment.