evgs / BombusLime

Xmpp client for Android devices
http://bombus.im/lime/nightlies
GNU General Public License v2.0
15 stars 1 forks source link

Wrong chat opened when clicking on notification in statusbar #51

Closed evgs closed 12 years ago

evgs commented 12 years ago

Steps to reproduce:

  1. receive message from contact A.
  2. Neither chat 'A' should be opened nor notification 'A' should be clicked.
  3. Receive message from contact 'B'.
  4. Now we have active notification from 'B'
  5. Click notification - chat A will be opened instead of 'B'.
evgs commented 12 years ago

Problem with bundles was clarified here:

http://stackoverflow.com/questions/5049435/notification-getintent-getextras-gets-the-same-bundle

Your Intent is the same on all non-extra parameters (e.g., action). Hence, you get the same PendingIntent back from your getActivity() call, as there is only one PendingIntent per distinct Intent. You need to change something -- beyond extras -- in your second Intent, such as a different action string.