From 66ab12b85c01e35535df9291e28508e5a9907a8d Mon Sep 17 00:00:00 2001 From: Jeremy Jao Date: Wed, 24 May 2017 19:53:15 -0400 Subject: [PATCH] move no buses page to 3 dot menu, change to actual semver for beta --- app/build.gradle | 4 ++-- .../com/pittsburghrealtimetracker/ui/MainActivity.java | 9 +++++++++ app/src/main/res/menu/select_transit.xml | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index e6ac3292..55614c4e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -19,8 +19,8 @@ android { applicationId "rectangledbmi.com.pittsburghrealtimetracker" minSdkVersion versions.android.minSdk targetSdkVersion versions.android.targetSdk - versionCode 81 - versionName "8.0.0b3" + versionCode 160080001 + versionName "8.0.1-beta" } lintOptions { warning 'InvalidPackage' diff --git a/app/src/main/java/rectangledbmi/com/pittsburghrealtimetracker/ui/MainActivity.java b/app/src/main/java/rectangledbmi/com/pittsburghrealtimetracker/ui/MainActivity.java index db6ce37c..7440fc65 100644 --- a/app/src/main/java/rectangledbmi/com/pittsburghrealtimetracker/ui/MainActivity.java +++ b/app/src/main/java/rectangledbmi/com/pittsburghrealtimetracker/ui/MainActivity.java @@ -463,4 +463,13 @@ public void restoreSelection() { mNavigationDrawerFragment.reselectRoutes(); } + private void openNoBusesPage() { + 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) { + openNoBusesPage(); + } } diff --git a/app/src/main/res/menu/select_transit.xml b/app/src/main/res/menu/select_transit.xml index 3df3fb06..3483f00c 100644 --- a/app/src/main/res/menu/select_transit.xml +++ b/app/src/main/res/menu/select_transit.xml @@ -30,7 +30,7 @@ appcompat:showAsAction="never" />