From bc3b0458bf4281a92f65dc98d87ad6ff40c92f98 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Tue, 5 Apr 2016 17:13:37 -0700 Subject: [PATCH] Fixed the contentinfo api usage in the bugreport Removed the percentage shown in the header and migrated the name to the subtext as contentinfo was deprecated. Change-Id: Ifd79a67cad8958049bd29b8eb4c9bcbb4822688b --- .../Shell/src/com/android/shell/BugreportProgressService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/Shell/src/com/android/shell/BugreportProgressService.java b/packages/Shell/src/com/android/shell/BugreportProgressService.java index c131fa5d547c0..7ca76141a84cf 100644 --- a/packages/Shell/src/com/android/shell/BugreportProgressService.java +++ b/packages/Shell/src/com/android/shell/BugreportProgressService.java @@ -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);