disable lazy load on error response to prevent repeating requests in headlines fragment
This commit is contained in:
parent
7150fad59b
commit
1f01a82fb5
@ -241,6 +241,8 @@ public class ArticlePager extends Fragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
m_lazyLoadDisabled = true;
|
||||||
|
|
||||||
if (m_lastError == ApiCommon.ApiError.LOGIN_FAILED) {
|
if (m_lastError == ApiCommon.ApiError.LOGIN_FAILED) {
|
||||||
m_activity.login(true);
|
m_activity.login(true);
|
||||||
} else {
|
} else {
|
||||||
|
@ -638,10 +638,11 @@ public class HeadlinesFragment extends Fragment {
|
|||||||
m_listener.onHeadlinesLoaded(append);
|
m_listener.onHeadlinesLoaded(append);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
m_lazyLoadDisabled = true;
|
||||||
|
|
||||||
if (m_lastError == ApiCommon.ApiError.LOGIN_FAILED) {
|
if (m_lastError == ApiCommon.ApiError.LOGIN_FAILED) {
|
||||||
m_activity.login(true);
|
m_activity.login(true);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (m_lastErrorMessage != null) {
|
if (m_lastErrorMessage != null) {
|
||||||
m_activity.toast(getString(getErrorMessage()) + "\n" + m_lastErrorMessage);
|
m_activity.toast(getString(getErrorMessage()) + "\n" + m_lastErrorMessage);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user