Crash fixes
This commit is contained in:
parent
5eb5a42465
commit
1ee55a643e
|
@ -547,9 +547,11 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
|
|||
.setCallback(new Callback<>(){
|
||||
@Override
|
||||
public void onSuccess(List<Relationship> result){
|
||||
if(!result.isEmpty()){
|
||||
relationship=result.get(0);
|
||||
updateRelationship();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(ErrorResponse error){
|
||||
|
|
|
@ -401,9 +401,11 @@ public class InstanceCatalogFragment extends BaseRecyclerFragment<CatalogInstanc
|
|||
instanceProgressDialog=new ProgressDialog(getActivity());
|
||||
instanceProgressDialog.setMessage(getString(R.string.loading_instance));
|
||||
instanceProgressDialog.setOnCancelListener(dialog->{
|
||||
if(loadingInstanceRequest!=null){
|
||||
loadingInstanceRequest.cancel();
|
||||
loadingInstanceRequest=null;
|
||||
loadingInstanceDomain=null;
|
||||
}
|
||||
});
|
||||
instanceProgressDialog.show();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue