Use application name when sending logs, instead of generic "Linphone"

This commit is contained in:
Gautier Pelloux-Prayer 2014-10-21 16:58:46 +02:00
parent 9a73f2d7e7
commit e6a5f5aae0

View file

@ -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 {