revert to old way of handling LOGIN_FAILED in subfragments
This commit is contained in:
parent
b826481001
commit
0717b1d38f
@ -233,7 +233,7 @@ public class FeedCategoriesFragment extends Fragment implements OnItemClickListe
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_lastError == ApiError.LOGIN_FAILED) {
|
if (m_lastError == ApiError.LOGIN_FAILED) {
|
||||||
m_onlineServices.restart();
|
m_onlineServices.login();
|
||||||
} else {
|
} else {
|
||||||
setLoadingStatus(getErrorMessage(), false);
|
setLoadingStatus(getErrorMessage(), false);
|
||||||
}
|
}
|
||||||
|
@ -347,7 +347,7 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_lastError == ApiError.LOGIN_FAILED) {
|
if (m_lastError == ApiError.LOGIN_FAILED) {
|
||||||
m_onlineServices.restart();
|
m_onlineServices.login();
|
||||||
} else {
|
} else {
|
||||||
setLoadingStatus(getErrorMessage(), false);
|
setLoadingStatus(getErrorMessage(), false);
|
||||||
}
|
}
|
||||||
|
@ -319,7 +319,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_lastError == ApiError.LOGIN_FAILED) {
|
if (m_lastError == ApiError.LOGIN_FAILED) {
|
||||||
m_onlineServices.restart();
|
m_onlineServices.login();
|
||||||
} else {
|
} else {
|
||||||
setLoadingStatus(getErrorMessage(), false);
|
setLoadingStatus(getErrorMessage(), false);
|
||||||
}
|
}
|
||||||
|
@ -1903,6 +1903,7 @@ public class MainActivity extends CommonActivity implements OnlineServices {
|
|||||||
initMainMenu();
|
initMainMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
@SuppressWarnings({ "unchecked", "serial" })
|
@SuppressWarnings({ "unchecked", "serial" })
|
||||||
public void login() {
|
public void login() {
|
||||||
|
|
||||||
@ -2256,7 +2257,6 @@ public class MainActivity extends CommonActivity implements OnlineServices {
|
|||||||
initMainMenu();
|
initMainMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void restart() {
|
public void restart() {
|
||||||
Intent refresh = new Intent(MainActivity.this, MainActivity.class);
|
Intent refresh = new Intent(MainActivity.this, MainActivity.class);
|
||||||
refresh.putExtra("sessionId", m_sessionId);
|
refresh.putExtra("sessionId", m_sessionId);
|
||||||
|
@ -20,7 +20,7 @@ public interface OnlineServices {
|
|||||||
public void onArticleListSelectionChange(ArticleList selection);
|
public void onArticleListSelectionChange(ArticleList selection);
|
||||||
|
|
||||||
//public void initMainMenu();
|
//public void initMainMenu();
|
||||||
public void restart();
|
public void login();
|
||||||
public String getSessionId();
|
public String getSessionId();
|
||||||
public boolean isSmallScreen();
|
public boolean isSmallScreen();
|
||||||
public boolean getUnreadOnly();
|
public boolean getUnreadOnly();
|
||||||
|
Loading…
Reference in New Issue
Block a user