@Override public void onFailure(int i, Header[] header, byte[] responseBytes, Throwable throwable) { BaseRecycleViewFragment instance = mInstance.get(); if (instance.isAdded()) { instance.executeOnLoadDataError(null); instance.executeOnLoadFinish(); } }
@Override protected void onPostExecute(String result) { super.onPostExecute(result); BaseRecycleViewFragment instance = mInstance.get(); if (instance != null) { if (parseError) { instance.executeOnLoadDataError(null); } else { instance.executeOnLoadDataSuccess(list); if (!fromCache) { if (instance.mState == STATE_REFRESH) { instance.onRefreshNetworkSuccess(); } } instance.executeOnLoadFinish(); } } }