article: do not use embedded webview titlebar in portrait mode

This commit is contained in:
Andrew Dolgov 2013-01-01 17:48:03 +04:00
parent 09c3fdf39c
commit c15e32a6a8

View File

@ -177,7 +177,7 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
TitleBarWebView web = (TitleBarWebView)view.findViewById(R.id.content); TitleBarWebView web = (TitleBarWebView)view.findViewById(R.id.content);
if (web != null) { if (web != null) {
if (m_activity.isSmallScreen()) { if (!m_activity.isPortrait() && m_activity.isSmallScreen()) {
View header = view.findViewById(R.id.article_header); View header = view.findViewById(R.id.article_header);
LinearLayout article = (LinearLayout)view.findViewById(R.id.article_fragment); LinearLayout article = (LinearLayout)view.findViewById(R.id.article_fragment);
article.removeView(header); article.removeView(header);