fix status bar not being dimmed after undimmed manually
This commit is contained in:
parent
f27bbf9e8c
commit
84bffe92cd
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user