Loading packages/Shell/src/com/android/shell/BugreportProgressService.java +8 −4 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ import java.util.zip.ZipOutputStream; import libcore.io.Streams; import com.android.internal.annotations.GuardedBy; import com.android.internal.annotations.VisibleForTesting; import com.android.internal.app.ChooserActivity; import com.android.internal.logging.MetricsLogger; Loading Loading @@ -232,6 +233,7 @@ public class BugreportProgressService extends Service { */ private boolean mTakingScreenshot; @GuardedBy("sNotificationBundle") private static final Bundle sNotificationBundle = new Bundle(); private boolean mIsWatch; Loading Loading @@ -1053,11 +1055,13 @@ public class BugreportProgressService extends Service { } private static Notification.Builder newBaseNotification(Context context) { synchronized (sNotificationBundle) { if (sNotificationBundle.isEmpty()) { // Rename notifcations from "Shell" to "Android System" sNotificationBundle.putString(Notification.EXTRA_SUBSTITUTE_APP_NAME, context.getString(com.android.internal.R.string.android_system_label)); } } return new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) .addExtras(sNotificationBundle) .setSmallIcon( Loading Loading
packages/Shell/src/com/android/shell/BugreportProgressService.java +8 −4 Original line number Diff line number Diff line Loading @@ -42,6 +42,7 @@ import java.util.zip.ZipOutputStream; import libcore.io.Streams; import com.android.internal.annotations.GuardedBy; import com.android.internal.annotations.VisibleForTesting; import com.android.internal.app.ChooserActivity; import com.android.internal.logging.MetricsLogger; Loading Loading @@ -232,6 +233,7 @@ public class BugreportProgressService extends Service { */ private boolean mTakingScreenshot; @GuardedBy("sNotificationBundle") private static final Bundle sNotificationBundle = new Bundle(); private boolean mIsWatch; Loading Loading @@ -1053,11 +1055,13 @@ public class BugreportProgressService extends Service { } private static Notification.Builder newBaseNotification(Context context) { synchronized (sNotificationBundle) { if (sNotificationBundle.isEmpty()) { // Rename notifcations from "Shell" to "Android System" sNotificationBundle.putString(Notification.EXTRA_SUBSTITUTE_APP_NAME, context.getString(com.android.internal.R.string.android_system_label)); } } return new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) .addExtras(sNotificationBundle) .setSmallIcon( Loading