Skip to content

Commit d05b090

Browse files
committed
show also android api level and cpu abi on the about page
1 parent 4a5bb30 commit d05b090

File tree

1 file changed

+22
-3
lines changed
  • android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa

1 file changed

+22
-3
lines changed

android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa/Aboutpage.java

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import android.graphics.Bitmap;
2626
import android.graphics.BitmapFactory;
2727
import android.net.Uri;
28+
import android.os.Build;
2829
import android.os.Bundle;
2930
import android.os.Environment;
3031
import android.os.Handler;
@@ -63,10 +64,28 @@ protected void onCreate(Bundle savedInstanceState)
6364
setImage(R.drawable.web_hi_res_512).
6465
addWebsite("https://github.com/zoff99/ToxAndroidRefImpl/blob/zoff99/dev003/README.md");
6566

67+
String abis = "??";
68+
try
69+
{
70+
abis = Build.SUPPORTED_ABIS[0];
71+
}
72+
catch(Exception e)
73+
{
74+
try
75+
{
76+
abis = Build.CPU_ABI;
77+
}
78+
catch(Exception e2)
79+
{
80+
}
81+
}
82+
6683
aboutPage.setDescription(getString(R.string.Aboutpage_5a) + "\n" + getString(R.string.Aboutpage_5b) + " " +
67-
MainActivity.versionName + "\n\n" + "TRIfA commit hash:" + BuildConfig.GitHash +
68-
"\n" + "JNI commit hash:" + MainActivity.getNativeLibGITHASH() + "\n" +
69-
"c-toxcore commit hash:" + MainActivity.getNativeLibTOXGITHASH());
84+
MainActivity.versionName + "\n\n" + "TRIfA commit hash: " + BuildConfig.GitHash +
85+
"\n" + "JNI commit hash: " + MainActivity.getNativeLibGITHASH() + "\n" +
86+
"c-toxcore commit hash: " + MainActivity.getNativeLibTOXGITHASH() + "\n" +
87+
"Android API Level: " + Build.VERSION.SDK_INT + "\n" +
88+
"CPU ABI: " + abis);
7089

7190
Element tox_link = new Element();
7291
tox_link.setTitle(getString(R.string.Aboutpage_6));

0 commit comments

Comments
 (0)