Call notifyDataSetChanged() to trigger view updates

Calling notifyDataSetInvalidated() would mean that we abaddon this adapter

Fixes #84 (again)
This commit is contained in:
Adrian Ulrich 2016-03-28 09:00:00 +02:00
parent 0ada623946
commit 86c6a3b326

View File

@ -1,6 +1,6 @@
/* /*
* Copyright (C) 2010, 2011 Christopher Eby <kreed@kreed.org> * Copyright (C) 2010, 2011 Christopher Eby <kreed@kreed.org>
* Copyright (C) 2015 Adrian Ulrich <adrian@blinkenlights.ch> * Copyright (C) 2015-2016 Adrian Ulrich <adrian@blinkenlights.ch>
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -158,7 +158,7 @@ public class FileSystemAdapter
public void commitQuery(Object data) public void commitQuery(Object data)
{ {
mFiles = (File[])data; mFiles = (File[])data;
notifyDataSetInvalidated(); notifyDataSetChanged();
} }
@Override @Override