Skip to content

Commit 0119fa2

Browse files
committed
Use method to access Cursor
Fixes lint error.
1 parent 279233b commit 0119fa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/blau/android/filter/TagFilterActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ public void notifyDataSetChanged(@NonNull String filter) {
452452

453453
@Override
454454
public View getView(int position, View convertView, ViewGroup parent) {
455-
if (mCursor.isClosed()) {
455+
if (getCursor().isClosed()) {
456456
Log.w(DEBUG_TAG, "cursor closed, recreating");
457457
updateAdapter(TagFilterDatabaseHelper.getCurrent(db));
458458
}

0 commit comments

Comments
 (0)