Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Merge branch 'AGCORDOVA-23'
Browse files Browse the repository at this point in the history
  • Loading branch information
matzew committed Jul 23, 2014
2 parents 5772558 + f843c34 commit 9ce7a81
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,13 @@ public void createNotification(Context context, Bundle extras) {

PendingIntent contentIntent = PendingIntent.getActivity(context, 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);

final String title = extras.getString("title");
NotificationCompat.Builder builder =
new NotificationCompat.Builder(context)
.setDefaults(Notification.DEFAULT_ALL)
.setSmallIcon(context.getApplicationInfo().icon)
.setWhen(System.currentTimeMillis())
.setContentTitle(appName)
.setContentTitle(title != null ? title : appName)
.setTicker(appName)
.setAutoCancel(true)
.setContentIntent(contentIntent);
Expand Down

0 comments on commit 9ce7a81

Please sign in to comment.