fix status bar not being dimmed after undimmed manually

This commit is contained in:
Andrew Dolgov 2012-10-10 15:12:58 +04:00
parent f27bbf9e8c
commit 84bffe92cd
2 changed files with 10 additions and 5 deletions

View File

@ -47,6 +47,11 @@ public class ArticlePager extends Fragment {
if (article != null) {
ArticleFragment af = new ArticleFragment(article);
if (m_prefs.getBoolean("dim_status_bar", false) && getView() != null) {
getView().setSystemUiVisibility(View.STATUS_BAR_HIDDEN);
}
return af;
}
return null;
@ -127,11 +132,6 @@ public class ArticlePager extends Fragment {
}
});
if (m_prefs.getBoolean("dim_status_bar", false)) {
view.setSystemUiVisibility(View.STATUS_BAR_HIDDEN);
}
return view;
}

View File

@ -79,6 +79,11 @@ public class OfflineArticlePager extends Fragment {
Log.d(TAG, "getItem: " + position);
if (m_cursor.moveToPosition(position)) {
if (m_prefs.getBoolean("dim_status_bar", false) && getView() != null) {
getView().setSystemUiVisibility(View.STATUS_BAR_HIDDEN);
}
return new OfflineArticleFragment(m_cursor.getInt(m_cursor.getColumnIndex(BaseColumns._ID)));
}