simplify casting, add comment

This commit is contained in:
B. Petersen
2020-05-02 15:08:24 +02:00
parent 27a87775d3
commit c60cff2259
@@ -531,7 +531,7 @@ public class ApplicationDcContext extends DcContext {
break;
case DC_EVENT_INCOMING_MSG:
MessageNotifierCompat.updateNotification(((Long) data1).intValue(), ((Long) data2).intValue());
MessageNotifierCompat.updateNotification((int) data1, (int) data2); // updateNotification() makes sure to run in the correct thread
if (eventCenter != null) {
eventCenter.sendToObservers(event, data1, data2); // Other parts of the code are also interested in this event
}