Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6338140 authored by Vipul Solanki's avatar Vipul Solanki
Browse files

Fix issue_5931_shows_null_in_notification_while_sending_mail

parent 6820a8ab
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -3352,8 +3352,13 @@ public class MessagingController implements Runnable {
        builder.setSmallIcon(R.drawable.ic_notify_check_mail);
        builder.setWhen(System.currentTimeMillis());
        builder.setOngoing(true);
        if(!TextUtils.isEmpty(account.getDescription())) {
            builder.setTicker(mApplication.getString(R.string.notification_bg_send_ticker,
                    account.getDescription()));
        }else {
            builder.setTicker(mApplication.getString(R.string.notification_bg_send_ticker,
                    account.getEmail()));
        }

        builder.setContentTitle(mApplication.getString(R.string.notification_bg_send_title));
        builder.setContentText(account.getDescription());