private void loadList(List<AppInfo> apps) {
mRecyclerView.setVisibility(View.VISIBLE);
.map(new Func1<AppInfo,AppInfo>(){
public Appinfo call(AppInfo appInfo){
String currentName = appInfo.getName();
String lowerCaseName = currentName.toLowerCase();
appInfo.setName(lowerCaseName);
.subscribe(new Observer<AppInfo>() {
public void onCompleted() {
mSwipeRefreshLayout.setRefreshing(false);
public void onError(Throwable e) {
Toast.makeText(getActivity(), "Something went wrong!", Toast.LENGTH_SHORT).show();
mSwipeRefreshLayout.setRefreshing(false);
public void onNext(AppInfo appInfo) {
mAdapter.addApplication(mAddedApps.size() - 1,appInfo);