From 482b05d6213b7f4b7bfe50831ea3f50f0b6c9db4 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Mon, 5 Nov 2012 20:19:41 +0530 Subject: [PATCH] Add ticker text for notifications --- src/org/wikimedia/commons/UploadService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/wikimedia/commons/UploadService.java b/src/org/wikimedia/commons/UploadService.java index cad3e36e3..ba645f5ad 100644 --- a/src/org/wikimedia/commons/UploadService.java +++ b/src/org/wikimedia/commons/UploadService.java @@ -138,6 +138,7 @@ public class UploadService extends IntentService { .setContent(notificationView) .setOngoing(true) .setContentIntent(PendingIntent.getActivity(getApplicationContext(), 0, new Intent(), 0)) + .setTicker(String.format(getString(R.string.upload_progress_notification_title_in_progress), filename)) .getNotification(); this.startForeground(NOTIFICATION_DOWNLOAD_IN_PROGRESS, progressNotification); @@ -180,6 +181,7 @@ public class UploadService extends IntentService { .setSmallIcon(R.drawable.ic_launcher) .setContentTitle(String.format(getString(R.string.upload_completed_notification_title), filename)) .setContentText(getString(R.string.upload_completed_notification_text)) + .setTicker(String.format(getString(R.string.upload_completed_notification_title), filename)) .setContentIntent(PendingIntent.getActivity(this, 0, openUploadedPageIntent, 0)) .getNotification();