@@ -662,9 +662,12 @@ public void updateNotification(IBinder key, StatusBarNotification notification)
662662 // update the contentIntent
663663 final PendingIntent contentIntent = notification .notification .contentIntent ;
664664 if (contentIntent != null ) {
665- oldEntry .content .setOnClickListener (new NotificationClicker (contentIntent ,
666- notification .pkg , notification .tag , notification .id ));
665+ final View .OnClickListener listener = new NotificationClicker (contentIntent ,
666+ notification .pkg , notification .tag , notification .id );
667+ oldEntry .largeIcon .setOnClickListener (listener );
668+ oldEntry .content .setOnClickListener (listener );
667669 } else {
670+ oldEntry .largeIcon .setOnClickListener (null );
668671 oldEntry .content .setOnClickListener (null );
669672 }
670673 // Update the icon.
@@ -779,9 +782,12 @@ public void onClick(View v) {
779782 content .setOnFocusChangeListener (mFocusChangeListener );
780783 PendingIntent contentIntent = n .contentIntent ;
781784 if (contentIntent != null ) {
782- content .setOnClickListener (new NotificationClicker (contentIntent , notification .pkg ,
783- notification .tag , notification .id ));
785+ final View .OnClickListener listener = new NotificationClicker (contentIntent ,
786+ notification .pkg , notification .tag , notification .id );
787+ largeIcon .setOnClickListener (listener );
788+ content .setOnClickListener (listener );
784789 } else {
790+ largeIcon .setOnClickListener (null );
785791 content .setOnClickListener (null );
786792 }
787793
@@ -979,9 +985,12 @@ public void onClick(View v) {
979985// content.setOnFocusChangeListener(mFocusChangeListener);
980986 PendingIntent contentIntent = sbn .notification .contentIntent ;
981987 if (contentIntent != null ) {
982- content .setOnClickListener (new NotificationClicker (contentIntent ,
983- sbn .pkg , sbn .tag , sbn .id ));
988+ final View .OnClickListener listener = new NotificationClicker (contentIntent ,
989+ sbn .pkg , sbn .tag , sbn .id );
990+ largeIcon .setOnClickListener (listener );
991+ content .setOnClickListener (listener );
984992 } else {
993+ largeIcon .setOnClickListener (null );
985994 content .setOnClickListener (null );
986995 }
987996
0 commit comments