mirror of
https://gitlab.com/biskuteri-cafe/JKomasto2.git
synced 2025-01-08 21:24:45 +01:00
Fixed false assumption for newer Mastodon accounts.
This commit is contained in:
parent
fa9a5edab0
commit
2725d8dc5b
BIN
JKomasto2.jar
BIN
JKomasto2.jar
Binary file not shown.
@ -260,8 +260,7 @@ implements ActionListener {
|
|||||||
public void
|
public void
|
||||||
showNotifications(List<Notification> notifications)
|
showNotifications(List<Notification> notifications)
|
||||||
{
|
{
|
||||||
assert notifications.size() == rows.size();
|
for (int o = 0; o < notifications.size(); ++o)
|
||||||
for (int o = 0; o < rows.size(); ++o)
|
|
||||||
{
|
{
|
||||||
Notification n = notifications.get(o);
|
Notification n = notifications.get(o);
|
||||||
NotificationComponent c = rows.get(o);
|
NotificationComponent c = rows.get(o);
|
||||||
@ -278,6 +277,15 @@ implements ActionListener {
|
|||||||
}
|
}
|
||||||
c.setText(n.postText);
|
c.setText(n.postText);
|
||||||
}
|
}
|
||||||
|
for (int o = notifications.size(); o < rows.size(); ++o)
|
||||||
|
{
|
||||||
|
NotificationComponent c = rows.get(o);
|
||||||
|
c.setName("");
|
||||||
|
c.setType("");
|
||||||
|
c.setText("");
|
||||||
|
}
|
||||||
|
prev.setEnabled(true);
|
||||||
|
next.setEnabled(!notifications.isEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
// - -%- -
|
// - -%- -
|
||||||
|
Loading…
Reference in New Issue
Block a user