revert to old way of handling LOGIN_FAILED in subfragments

This commit is contained in:
Andrew Dolgov 2012-09-01 22:26:32 +04:00
parent b826481001
commit 0717b1d38f
5 changed files with 5 additions and 5 deletions

View File

@ -233,7 +233,7 @@ public class FeedCategoriesFragment extends Fragment implements OnItemClickListe
}
if (m_lastError == ApiError.LOGIN_FAILED) {
m_onlineServices.restart();
m_onlineServices.login();
} else {
setLoadingStatus(getErrorMessage(), false);
}

View File

@ -347,7 +347,7 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh
}
if (m_lastError == ApiError.LOGIN_FAILED) {
m_onlineServices.restart();
m_onlineServices.login();
} else {
setLoadingStatus(getErrorMessage(), false);
}

View File

@ -319,7 +319,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
}
if (m_lastError == ApiError.LOGIN_FAILED) {
m_onlineServices.restart();
m_onlineServices.login();
} else {
setLoadingStatus(getErrorMessage(), false);
}

View File

@ -1903,6 +1903,7 @@ public class MainActivity extends CommonActivity implements OnlineServices {
initMainMenu();
}
@Override
@SuppressWarnings({ "unchecked", "serial" })
public void login() {
@ -2256,7 +2257,6 @@ public class MainActivity extends CommonActivity implements OnlineServices {
initMainMenu();
}
@Override
public void restart() {
Intent refresh = new Intent(MainActivity.this, MainActivity.class);
refresh.putExtra("sessionId", m_sessionId);

View File

@ -20,7 +20,7 @@ public interface OnlineServices {
public void onArticleListSelectionChange(ArticleList selection);
//public void initMainMenu();
public void restart();
public void login();
public String getSessionId();
public boolean isSmallScreen();
public boolean getUnreadOnly();