fix an issue with back-forward interaction with sliding panel

This commit is contained in:
Andrew Dolgov 2013-10-20 10:05:33 +04:00
parent b8ee3dab39
commit b02590e06a

View File

@ -68,6 +68,17 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
m_slidingMenu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT); m_slidingMenu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);
m_slidingMenu.setMenu(R.layout.feeds); m_slidingMenu.setMenu(R.layout.feeds);
m_slidingMenu.setSlidingEnabled(true); m_slidingMenu.setSlidingEnabled(true);
m_slidingMenu.setOnClosedListener(new SlidingMenu.OnClosedListener() {
@Override
public void onClosed() {
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
m_actionbarUpEnabled = true;
m_feedIsSelected = true;
}
});
m_slidingMenu.setOnOpenedListener(new SlidingMenu.OnOpenedListener() { m_slidingMenu.setOnOpenedListener(new SlidingMenu.OnOpenedListener() {
@Override @Override