fix logout
remove all the sidebar shit from onbackpressed becase ughh eghh aghhh
This commit is contained in:
parent
b44d895165
commit
6589f154c6
@ -279,14 +279,12 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
|
||||
onCatSelected(cat, m_prefs.getBoolean("browse_cats_like_feeds", false));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
if (m_drawerLayout != null && !m_drawerLayout.isDrawerOpen(Gravity.START)) {
|
||||
m_drawerLayout.openDrawer(Gravity.START);
|
||||
} else {
|
||||
super.onBackPressed();
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void logout() {
|
||||
super.logout();
|
||||
|
||||
finish();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user