diff options
author | Arne Schwabe <arne@rfc2549.org> | 2022-11-01 18:35:16 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2022-11-01 18:37:25 +0100 |
commit | ea13917b41ed161f8a385ed438ee8fd3742f557b (patch) | |
tree | 1261fc5b383ce41a3d256012a03aecd7d71573c5 /main/src/ui | |
parent | c71db5fc5a9715490a69ef8ef248668883bf5a13 (diff) |
Add OpenSSL version in about screen
Diffstat (limited to 'main/src/ui')
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/fragments/AboutFragment.java | 4 | ||||
-rw-r--r-- | main/src/ui/res/layout/about.xml | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/fragments/AboutFragment.java b/main/src/ui/java/de/blinkt/openvpn/fragments/AboutFragment.java index 240fbe06..182c1a56 100644 --- a/main/src/ui/java/de/blinkt/openvpn/fragments/AboutFragment.java +++ b/main/src/ui/java/de/blinkt/openvpn/fragments/AboutFragment.java @@ -83,9 +83,13 @@ public class AboutFragment extends Fragment implements View.OnClickListener { TextView verO2 = v.findViewById(R.id.version_ovpn2); TextView verO3 = v.findViewById(R.id.version_ovpn3); + TextView osslVer = v.findViewById(R.id.openssl_version); verO2.setText(String.format(Locale.US, "OpenVPN version: %s", NativeUtils.getOpenVPN2GitVersion())); verO3.setText(String.format(Locale.US, "OpenVPN3 core version: %s", NativeUtils.getOpenVPN3GitVersion())); + osslVer.setText(String.format(Locale.US, "OpenSSL version: %s", NativeUtils.getOpenSSLVersion())); + + /* recreating view without onCreate/onDestroy cycle */ TextView translation = (TextView) v.findViewById(R.id.translation); diff --git a/main/src/ui/res/layout/about.xml b/main/src/ui/res/layout/about.xml index fb2497ff..cd482996 100644 --- a/main/src/ui/res/layout/about.xml +++ b/main/src/ui/res/layout/about.xml @@ -45,9 +45,13 @@ android:id="@+id/version_ovpn3" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="12sp" tools:text="OpenVPN3 core version 8df8718283" /> - + <TextView + android:id="@+id/openssl_version" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="12sp" + tools:text="OpenSSL version 8df8718283" /> <TextView android:layout_width="match_parent" |