Skip to content

Commit b9274c0

Browse files
ashishkumar468neslihanturan
authored andcommitted
Fix memory leak in CategoryDetailsActivity (commons-app#1792)
1 parent 3399576 commit b9274c0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/src/main/java/fr/free/nrw/commons/category/CategoryImagesListFragment.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,7 @@ private void handleSuccess(List<Media> collection) {
263263
* @return GridView Adapter
264264
*/
265265
public ListAdapter getAdapter() {
266-
if(gridView == null) {
267-
return null;
268-
}
269-
return gridView.getAdapter();
266+
return gridAdapter;
270267
}
271268

272269
}

0 commit comments

Comments
 (0)