From b02590e06afc6009f9efc1a60aa87bacc9f2769a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 20 Oct 2013 10:05:33 +0400 Subject: [PATCH] fix an issue with back-forward interaction with sliding panel --- src/org/fox/ttrss/FeedsActivity.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/org/fox/ttrss/FeedsActivity.java b/src/org/fox/ttrss/FeedsActivity.java index 1f981839..2a49fff0 100644 --- a/src/org/fox/ttrss/FeedsActivity.java +++ b/src/org/fox/ttrss/FeedsActivity.java @@ -68,6 +68,17 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe m_slidingMenu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT); m_slidingMenu.setMenu(R.layout.feeds); 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() { @Override