mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-05-18 21:47:37 -04:00
Don't use fragment adapter if it's null (fixes #82)
This commit is contained in:
@@ -78,6 +78,9 @@ public class AvailableAppsFragment extends AppListFragment implements
|
||||
getActivity().runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (adapter == null) {
|
||||
return;
|
||||
}
|
||||
adapter.clear();
|
||||
List<String> catList = AppProvider.Helper.categories(getActivity());
|
||||
ArrayAdapterCompat.addAll(adapter, catList);
|
||||
|
||||
Reference in New Issue
Block a user