mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
simplify casting, add comment
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user