Add android build number in settings #324

This commit is contained in:
mhutti1 2016-09-24 23:03:18 +01:00
parent 2ba412ca13
commit 91823e2a7f

View File

@ -226,7 +226,9 @@ public class KiwixSettingsActivity extends AppCompatActivity {
try {
version = getActivity().getPackageManager()
.getPackageInfo("org.kiwix.kiwixmobile", 0).versionName;
.getPackageInfo("org.kiwix.kiwixmobile", 0).versionName + " Build: " +
getActivity().getPackageManager()
.getPackageInfo("org.kiwix.kiwixmobile", 0).versionCode;
} catch (PackageManager.NameNotFoundException e) {
return;
}