Added version code in about page to keep track of which version is installed easily

This commit is contained in:
Sylvain Berfini 2018-11-28 17:24:33 +01:00
parent 594e322e04
commit c378cedf2b
2 changed files with 2 additions and 2 deletions

View file

@ -972,7 +972,7 @@ public class LinphoneActivity extends LinphoneGenericActivity implements OnClick
missedChats.clearAnimation();
missedChats.setVisibility(View.GONE);
}
if (currentFragment == FragmentsAvailable.CHAT_LIST) {
if (currentFragment == FragmentsAvailable.CHAT_LIST && fragment != null && fragment instanceof ChatRoomsFragment) {
((ChatRoomsFragment)fragment).invalidate();
}
}

View file

@ -59,7 +59,7 @@ public class AboutFragment extends Fragment implements OnClickListener {
TextView aboutVersion = view.findViewById(R.id.about_android_version);
TextView aboutLiblinphoneVersion = view.findViewById(R.id.about_liblinphone_version);
aboutLiblinphoneVersion.setText(String.format(getString(R.string.about_liblinphone_version), LinphoneManager.getLc().getVersion()));
aboutVersion.setText(String.format(getString(R.string.about_version), BuildConfig.VERSION_NAME));
aboutVersion.setText(String.format(getString(R.string.about_version), BuildConfig.VERSION_NAME + " (" + BuildConfig.VERSION_CODE + ")"));
sendLogButton = view.findViewById(R.id.send_log);
sendLogButton.setOnClickListener(this);