Merge "Fixed the contentinfo api usage in the bugreport" into nyc-dev

This commit is contained in:
Selim Cinek
2016-04-06 20:47:44 +00:00
committed by Android (Google) Code Review

View File

@@ -463,7 +463,6 @@ public class BugreportProgressService extends Service {
.setContentTitle(title)
.setTicker(title)
.setContentText(name)
.setContentInfo(percentageText)
.setProgress(info.max, info.progress, false)
.setOngoing(true)
.setContentIntent(infoPendingIntent)
@@ -958,7 +957,7 @@ public class BugreportProgressService extends Service {
.setDeleteIntent(newCancelIntent(context, info));
if (!TextUtils.isEmpty(info.name)) {
builder.setContentInfo(info.name);
builder.setSubText(info.name);
}
Log.v(TAG, "Sending 'Share' notification for ID " + info.id + ": " + title);