headlines: only show actionbar when moving up

This commit is contained in:
Andrew Dolgov 2017-06-05 13:42:37 +03:00
parent 97ef2dcea0
commit 5c437de607

View File

@ -512,7 +512,7 @@ public class HeadlinesFragment extends Fragment {
if (!m_activity.isTablet() && m_articles.size() > 0) { if (!m_activity.isTablet() && m_articles.size() > 0) {
if (dy > 0) { if (dy > 0) {
m_activity.getSupportActionBar().hide(); m_activity.getSupportActionBar().hide();
} else { } else if (dy < 0) {
m_activity.getSupportActionBar().show(); m_activity.getSupportActionBar().show();
} }