fix logout

remove all the sidebar shit from onbackpressed becase ughh eghh aghhh
This commit is contained in:
Andrew Dolgov 2014-11-03 18:45:36 +03:00
parent b44d895165
commit 6589f154c6
2 changed files with 9 additions and 20 deletions

View File

@ -280,12 +280,10 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
}
@Override
public void onBackPressed() {
if (m_drawerLayout != null && !m_drawerLayout.isDrawerOpen(Gravity.START)) {
m_drawerLayout.openDrawer(Gravity.START);
} else {
super.onBackPressed();
}
public void logout() {
super.logout();
finish();
}
@Override

View File

@ -121,15 +121,6 @@ public class OfflineFeedsActivity extends OfflineActivity implements OfflineHead
}
}
@Override
public void onBackPressed() {
if (m_drawerLayout != null && !m_drawerLayout.isDrawerOpen(Gravity.START)) {
m_drawerLayout.openDrawer(Gravity.START);
} else {
super.onBackPressed();
}
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (m_drawerToggle != null && m_drawerToggle.onOptionsItemSelected(item)) {