Skip to content

Commit

Permalink
Merge branch 'feature/call-record-fragment-crash-VIALA-874' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy.norman committed Mar 13, 2018
2 parents 1588249 + 5cee099 commit 28f02aa
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,11 @@ public void onResponse(@NonNull Call<VoipGridResponse<CallRecord>> call,
if (response.isSuccessful() && response.body() != null) {
mHaveNetworkRecords = true;
List<CallRecord> records = response.body().getObjects();
displayCallRecords(records);

if(getActivity() != null && isAdded()) {
displayCallRecords(records);
}

// Save the records to cache, if there are any.
if (filter(records).size() > 0) {
new AsyncCallRecordSaver(records).execute();
Expand Down

0 comments on commit 28f02aa

Please sign in to comment.