Commit a088ec8b authored by Leonardo Aramaki's avatar Leonardo Aramaki

Update notifications display on Oreo

parent 694084e3
...@@ -68,7 +68,7 @@ abstract class AbstractAuthedActivity extends AbstractFragmentActivity { ...@@ -68,7 +68,7 @@ abstract class AbstractAuthedActivity extends AbstractFragmentActivity {
rocketChatCache.setSelectedRoomId(intent.getStringExtra(PushManager.EXTRA_ROOM_ID)); rocketChatCache.setSelectedRoomId(intent.getStringExtra(PushManager.EXTRA_ROOM_ID));
} }
} }
PushManager.INSTANCE.clearHostNotifications(hostname); PushManager.INSTANCE.clearNotificationsByHost(hostname);
} else { } else {
updateHostnameIfNeeded(rocketChatCache.getSelectedServerHostname()); updateHostnameIfNeeded(rocketChatCache.getSelectedServerHostname());
} }
...@@ -76,7 +76,7 @@ abstract class AbstractAuthedActivity extends AbstractFragmentActivity { ...@@ -76,7 +76,7 @@ abstract class AbstractAuthedActivity extends AbstractFragmentActivity {
if (intent.hasExtra(PushManager.EXTRA_NOT_ID)) { if (intent.hasExtra(PushManager.EXTRA_NOT_ID)) {
isNotification = true; isNotification = true;
int notificationId = intent.getIntExtra(PushManager.EXTRA_NOT_ID, 0); int notificationId = intent.getIntExtra(PushManager.EXTRA_NOT_ID, 0);
PushManager.INSTANCE.clearNotificationIdStack(notificationId); PushManager.INSTANCE.clearNotificationsByNotificationId(notificationId);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment