fix crash on tablets

This commit is contained in:
Andrew Dolgov 2013-01-02 18:51:11 +04:00
parent 723fff03ec
commit 3974868298
2 changed files with 2 additions and 11 deletions

View File

@ -74,7 +74,7 @@
</LinearLayout>
<com.nobu_games.android.view.web.TitleBarWebView
<WebView
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent"

View File

@ -169,18 +169,9 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
}
}
TitleWebView web = (TitleWebView)view.findViewById(R.id.content);
WebView web = (WebView)view.findViewById(R.id.content);
if (web != null) {
/* if (!m_activity.isPortrait() && m_activity.isSmallScreen()) {
View header = view.findViewById(R.id.article_header);
LinearLayout article = (LinearLayout)view.findViewById(R.id.article_fragment);
article.removeView(header);
web.setEmbeddedTitleBarCompat(header);
} */
web.setWebChromeClient(new WebChromeClient() {
@Override
public void onProgressChanged(WebView view, int progress) {