mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Use channel ID while showing failed upload notification (#2322)
This commit is contained in:
parent
1727a296c9
commit
2ba6ed622f
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ public class UploadService extends HandlerService<Contribution> {
|
|||
@SuppressLint("StringFormatInvalid")
|
||||
@SuppressWarnings("deprecation")
|
||||
private void showFailedNotification(Contribution contribution) {
|
||||
Notification failureNotification = new NotificationCompat.Builder(this).setAutoCancel(true)
|
||||
Notification failureNotification = new NotificationCompat.Builder(this, CommonsApplication.NOTIFICATION_CHANNEL_ID_ALL).setAutoCancel(true)
|
||||
.setSmallIcon(R.drawable.ic_launcher)
|
||||
.setAutoCancel(true)
|
||||
.setContentIntent(PendingIntent.getActivity(this, 0, new Intent(this, MainActivity.class), 0))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue