mirror of
https://github.com/mastodon/mastodon-android.git
synced 2024-12-22 14:44:21 +01:00
Fix notification crashes caused by unknown notification type
This commit is contained in:
parent
beb11bfb70
commit
7f62470b9e
@ -195,6 +195,9 @@ public class CacheController{
|
||||
db.delete(table, null, null);
|
||||
ContentValues values=new ContentValues(3);
|
||||
for(Notification n:notifications){
|
||||
if(n.type==null){
|
||||
continue;
|
||||
}
|
||||
values.put("id", n.id);
|
||||
values.put("json", MastodonAPIController.gson.toJson(n));
|
||||
values.put("type", n.type.ordinal());
|
||||
|
Loading…
Reference in New Issue
Block a user