Skip to content

Commit

Permalink
Update to v3.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
GrazianoCapelli committed Aug 31, 2022
2 parents 43ca5f3 + 35a4332 commit 738f7e0
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 15 deletions.
Binary file added apk/GPSLogger-3.1.6.apk
Binary file not shown.
Binary file modified apk/GPSLogger-latest.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ android {

// -----------------------------------------------------------------------------------------
// We use the Semantic Versioning (https://semver.org/):
versionName '3.1.5'
versionCode 46
versionName '3.1.6'
versionCode 47
// -----------------------------------------------------------------------------------------

vectorDrawables.useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,14 +340,14 @@ public boolean onOptionsItemSelected(MenuItem item) {
return true;
}
if (id == R.id.action_online_help) {
if (isBrowserInstalled()) {
try {
// Opens the default browser and shows the Getting Started Guide page
String url = "https://www.basicairdata.eu/projects/android/android-gps-logger/getting-started-guide-for-gps-logger/";
Intent i = new Intent(Intent.ACTION_VIEW);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
i.setData(Uri.parse(url));
startActivity(i);
} else {
} catch (Exception e){
Toast toast = Toast.makeText(gpsApp.getApplicationContext(), R.string.toast_no_browser_installed, Toast.LENGTH_LONG);
toast.setGravity(Gravity.BOTTOM, 0, TOAST_VERTICAL_OFFSET);
toast.show();
Expand Down Expand Up @@ -487,17 +487,6 @@ public void run() {
}
}

/**
* @return true if a browser is installed on the device.
*/
private Boolean isBrowserInstalled() {
String url = "https://www.basicairdata.eu/projects/android/android-gps-logger/getting-started-guide-for-gps-logger/";
Uri webAddress = Uri.parse(url);
Intent intentWeb = new Intent(Intent.ACTION_VIEW, webAddress);
intentWeb.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
return (intentWeb.resolveActivity(getPackageManager()) != null);
}

/**
* Expands/Collapses the bottom bar, basing on the active tab.
*/
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/47.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixes the browser check for the Online Help on Android 11+
Binary file added sourcecode/GPSLogger-3.1.6 - Source.zip
Binary file not shown.

0 comments on commit 738f7e0

Please sign in to comment.