summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/AboutFragment.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-05-09 02:11:34 +0200
committerArne Schwabe <arne@rfc2549.org>2012-05-09 02:11:34 +0200
commit5c54035e38b9f2af636a054a9525c0dc4dfca46f (patch)
tree01feed96bd0559c660ec5ce45945c019c198d1a5 /src/de/blinkt/openvpn/AboutFragment.java
parent95d6e0331e2db3404475efb91b5a7535b843099a (diff)
parentccd71cda1d09c0b934a645d8f93fa7f5514147d5 (diff)
Merge
Diffstat (limited to 'src/de/blinkt/openvpn/AboutFragment.java')
-rw-r--r--src/de/blinkt/openvpn/AboutFragment.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/de/blinkt/openvpn/AboutFragment.java b/src/de/blinkt/openvpn/AboutFragment.java
index 065e53bc..77132299 100644
--- a/src/de/blinkt/openvpn/AboutFragment.java
+++ b/src/de/blinkt/openvpn/AboutFragment.java
@@ -1,6 +1,7 @@
package de.blinkt.openvpn;
import android.app.Fragment;
+import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.view.LayoutInflater;
@@ -23,14 +24,17 @@ public class AboutFragment extends Fragment {
TextView ver = (TextView) v.findViewById(R.id.version);
String version;
+ String name="Openvpn";
try {
- version = getActivity().getPackageManager().getPackageInfo(getActivity().getPackageName(), 0).versionName;
+ PackageInfo packageinfo = getActivity().getPackageManager().getPackageInfo(getActivity().getPackageName(), 0);
+ version = packageinfo.versionName;
+ name = getString(R.string.app);
} catch (NameNotFoundException e) {
version = "error fetching version";
}
- ver.setText(getString(R.string.version_info,version));
+ ver.setText(getString(R.string.version_info,name,version));
return v;
}