From e6a5f5aae01765dd9cd07e0ee346800e0c6f0444 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 21 Oct 2014 16:58:46 +0200 Subject: [PATCH] Use application name when sending logs, instead of generic "Linphone" --- src/org/linphone/LinphoneUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/org/linphone/LinphoneUtils.java b/src/org/linphone/LinphoneUtils.java index 8c0432474..912ae105b 100644 --- a/src/org/linphone/LinphoneUtils.java +++ b/src/org/linphone/LinphoneUtils.java @@ -389,11 +389,13 @@ public final class LinphoneUtils { Log.i("Saving logs to " + zipFilePath); if( zipLogs(sb, zipFilePath) ) { + final String appName = (context != null) ? context.getString(R.string.app_name) : "Linphone(?)"; + Uri zipURI = Uri.parse("file://" + zipFilePath); Intent i = new Intent(Intent.ACTION_SEND); i.putExtra(Intent.EXTRA_EMAIL, new String[]{email}); - i.putExtra(Intent.EXTRA_SUBJECT, "Linphone Logs"); - i.putExtra(Intent.EXTRA_TEXT, "Linphone logs"); + i.putExtra(Intent.EXTRA_SUBJECT, appName + " Logs"); + i.putExtra(Intent.EXTRA_TEXT, appName + " logs"); i.setType("application/zip"); i.putExtra(Intent.EXTRA_STREAM, zipURI); try {