diff --git a/res/layout/activity_about.xml b/res/layout/activity_about.xml
--- a/res/layout/activity_about.xml
+++ b/res/layout/activity_about.xml
@@ -1,22 +1,46 @@
-
+
+ layout="@layout/default_toobar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"/>
+ android:id="@+id/aboutTextView"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_marginTop="5dip"
+ android:layout_marginLeft="@dimen/activity_horizontal_margin"
+ android:layout_marginRight="@dimen/activity_horizontal_margin"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:layout_weight="0.85"
+ />
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/res/layout/nav_header.xml b/res/layout/nav_header.xml
--- a/res/layout/nav_header.xml
+++ b/res/layout/nav_header.xml
@@ -30,4 +30,10 @@
android:textColor="#FFFFFF"
android:textSize="20sp" />
+
\ No newline at end of file
diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml
--- a/res/values-it/strings.xml
+++ b/res/values-it/strings.xml
@@ -148,5 +148,6 @@
Offrici un caffè
Mappa
Ricerca fermate
+ Versione app
diff --git a/res/values/strings.xml b/res/values/strings.xml
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -102,6 +102,7 @@
Nearby stops
Nearby connections
+ App version
Finding the position…
No stops nearby
diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml
--- a/res/xml/preferences.xml
+++ b/res/xml/preferences.xml
@@ -27,6 +27,12 @@
android:layout_height="wrap_content"
android:gravity="center_vertical"
/>
-
+
+
diff --git a/src/it/reyboz/bustorino/ActivityAbout.java b/src/it/reyboz/bustorino/ActivityAbout.java
--- a/src/it/reyboz/bustorino/ActivityAbout.java
+++ b/src/it/reyboz/bustorino/ActivityAbout.java
@@ -17,9 +17,8 @@
*/
package it.reyboz.bustorino;
+import android.util.Log;
import androidx.appcompat.widget.Toolbar;
-import androidx.core.app.NavUtils;
-import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import android.text.Html;
import android.text.Spanned;
@@ -45,6 +44,10 @@
setSupportActionBar(mToolbar);
if (getSupportActionBar()!=null)
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+
+ TextView versionText = findViewById(R.id.versionTextView);
+ Log.d("BusTO About", "The version text view is: "+versionText);
+ versionText.setText(getResources().getText(R.string.app_version)+": "+BuildConfig.VERSION_NAME);
}
@Override
diff --git a/src/it/reyboz/bustorino/ActivityPrincipal.java b/src/it/reyboz/bustorino/ActivityPrincipal.java
--- a/src/it/reyboz/bustorino/ActivityPrincipal.java
+++ b/src/it/reyboz/bustorino/ActivityPrincipal.java
@@ -111,6 +111,10 @@
mNavView = findViewById(R.id.nvView);
setupDrawerContent(mNavView);
+ /*View header = mNavView.getHeaderView(0);
+
+ */
+ //mNavView.getMenu().findItem(R.id.versionFooter).
/// LEGACY CODE
//---------------------------- START INTENT CHECK QUEUE ------------------------------------
diff --git a/src/it/reyboz/bustorino/backend/FiveTAPIFetcher.java b/src/it/reyboz/bustorino/backend/FiveTAPIFetcher.java
--- a/src/it/reyboz/bustorino/backend/FiveTAPIFetcher.java
+++ b/src/it/reyboz/bustorino/backend/FiveTAPIFetcher.java
@@ -19,6 +19,7 @@
import androidx.annotation.Nullable;
import android.util.Log;
+import it.reyboz.bustorino.data.GTTInfoInject;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
@@ -242,8 +243,8 @@
if(response==null) return null;
ArrayList stopslist;
try{
- JSONObject responseJSON = new JSONObject(response);
- JSONArray stops = responseJSON.getJSONArray("stops");
+ //JSONObject responseJSON = new JSONObject(response);
+ JSONArray stops = new JSONArray(response);//responseJSON.getJSONArray("stops");
stopslist = new ArrayList<>(stops.length());
for (int i=0;i