mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Add ticker text for notifications
This commit is contained in:
parent
6d105f4844
commit
482b05d621
1 changed files with 2 additions and 0 deletions
|
|
@ -138,6 +138,7 @@ public class UploadService extends IntentService {
|
||||||
.setContent(notificationView)
|
.setContent(notificationView)
|
||||||
.setOngoing(true)
|
.setOngoing(true)
|
||||||
.setContentIntent(PendingIntent.getActivity(getApplicationContext(), 0, new Intent(), 0))
|
.setContentIntent(PendingIntent.getActivity(getApplicationContext(), 0, new Intent(), 0))
|
||||||
|
.setTicker(String.format(getString(R.string.upload_progress_notification_title_in_progress), filename))
|
||||||
.getNotification();
|
.getNotification();
|
||||||
|
|
||||||
this.startForeground(NOTIFICATION_DOWNLOAD_IN_PROGRESS, progressNotification);
|
this.startForeground(NOTIFICATION_DOWNLOAD_IN_PROGRESS, progressNotification);
|
||||||
|
|
@ -180,6 +181,7 @@ public class UploadService extends IntentService {
|
||||||
.setSmallIcon(R.drawable.ic_launcher)
|
.setSmallIcon(R.drawable.ic_launcher)
|
||||||
.setContentTitle(String.format(getString(R.string.upload_completed_notification_title), filename))
|
.setContentTitle(String.format(getString(R.string.upload_completed_notification_title), filename))
|
||||||
.setContentText(getString(R.string.upload_completed_notification_text))
|
.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))
|
.setContentIntent(PendingIntent.getActivity(this, 0, openUploadedPageIntent, 0))
|
||||||
.getNotification();
|
.getNotification();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue