1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 11:45:36 +00:00

Added installer to about

This commit is contained in:
M66B 2022-09-01 10:25:27 +02:00
parent c4ad9c244a
commit 4ad671ab7b

View file

@ -78,6 +78,15 @@ public class FragmentAbout extends FragmentBase {
source = "Debug"; source = "Debug";
else else
source = "?"; source = "?";
try {
String installer = context.getPackageManager().getInstallerPackageName(BuildConfig.APPLICATION_ID);
if (installer != null && !"com.android.vending".equals(installer))
source += " (" + installer + ")";
} catch (Throwable ex) {
Log.w(ex);
}
tvDownloaded.setText(getString(R.string.app_download, source)); tvDownloaded.setText(getString(R.string.app_download, source));
long last = 0; long last = 0;