]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/HtmlDisplayActivity.java
WebView links starting to work (still timing problem).
[Dictionary.git] / src / com / hughes / android / dictionary / HtmlDisplayActivity.java
index 0a65290772756bb635372dd5a6cbf73ba0455bfe..565bfce14650feb52169fef89617599a8cdd61fc 100644 (file)
@@ -73,8 +73,9 @@ public final class HtmlDisplayActivity extends Activity {
     } else {\r
       html = getIntent().getStringExtra(HTML);\r
     }\r
-    final WebView webView = (WebView) findViewById(R.id.webView);\r
+    final MyWebView webView = (MyWebView) findViewById(R.id.webView);\r
     webView.loadData(html, "text/html", "utf-8");\r
+    webView.activity = this;\r
     \r
     final String textToHighlight = getIntent().getStringExtra(TEXT_TO_HIGHLIGHT);\r
     if (textToHighlight != null && !"".equals(textToHighlight)) {\r