Don't use fragment adapter if it's null (fixes #82)
This commit is contained in:
parent
06ae1bc044
commit
680a468b6c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user