@Override public void onSuccess(int i, Header[] header, byte[] responseBytes) { BaseRecycleViewFragment instance = mInstance.get(); if (instance.isAdded()) { instance.executeParseTask(responseBytes, false); } }
@Override public void onFailure(int i, Header[] header, byte[] responseBytes, Throwable throwable) { BaseRecycleViewFragment instance = mInstance.get(); if (instance.isAdded()) { instance.executeOnLoadDataError(null); instance.executeOnLoadFinish(); } }