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