Add "About" screen
The "About" screen has always been accessible from F-Droid via the main menu. This is not the case in the new UI (there is no main menu any more, just a bottom navigation). In fact, the new UI doesn't provide any means for viewing the About screen any more. This needs to be reinstated. Here is the code previously used to show the about dialog:
View view = LayoutInflater.from(this).inflate(R.layout.about, null);
String versionName = Utils.getVersionName(this);
if (versionName != null) {
((TextView) view.findViewById(R.id.version)).setText(versionName);
}
AlertDialog alrt = new AlertDialog.Builder(this).setView(view).create();
alrt.setTitle(R.string.about_title);
alrt.setButton(AlertDialog.BUTTON_NEGATIVE, getString(R.string.ok),
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int whichButton) {
}
});
alrt.show();
I've purposely left all of the resources (e.g. R.layout.about
and relevant strings) so that this can be reinstated easily.
The only question is: Where? In the absence of any better suggestions, I'm going to put it either at the top or the bottom of the Settings screen. Not quite sure which is better at this exact point.