Open status from notifications

This commit is contained in:
charlag 2017-11-07 22:36:19 +03:00
commit 92fb55cb3a
2 changed files with 54 additions and 16 deletions

View file

@ -394,6 +394,18 @@ public class NotificationsFragment extends SFragment implements
super.viewAccount(id);
}
@Override
public void onViewStatusForNotificationId(String notificationId) {
for (Either<Placeholder, Notification> either : notifications) {
Notification notification = either.getAsRightOrNull();
if (notification != null && notification.id.equals(notificationId)) {
super.viewThread(notification.status);
return;
}
}
Log.w(TAG, "Didn't find a notification for ID: " + notificationId);
}
@Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
switch (key) {