Added installer to about

This commit is contained in:
M66B 2022-09-01 10:25:27 +02:00
parent c4ad9c244a
commit 4ad671ab7b
1 changed files with 9 additions and 0 deletions

View File

@ -78,6 +78,15 @@ public class FragmentAbout extends FragmentBase {
source = "Debug";
else
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));
long last = 0;