Toast忘了删
This commit is contained in:
parent
73d01233d4
commit
a1ed816e1c
|
@ -412,7 +412,6 @@ public class MainActivity extends Activity {
|
||||||
WebView w = (WebView) v;
|
WebView w = (WebView) v;
|
||||||
HitTestResult result = w.getHitTestResult();
|
HitTestResult result = w.getHitTestResult();
|
||||||
HTRE = result.getExtra();
|
HTRE = result.getExtra();
|
||||||
Toast.makeText(getApplicationContext(), result.toString(), Toast.LENGTH_SHORT).show();
|
|
||||||
menu.setHeaderTitle(HTRE);
|
menu.setHeaderTitle(HTRE);
|
||||||
if (result.getType() == HitTestResult.IMAGE_TYPE || result.getType() == HitTestResult.SRC_IMAGE_ANCHOR_TYPE) {
|
if (result.getType() == HitTestResult.IMAGE_TYPE || result.getType() == HitTestResult.SRC_IMAGE_ANCHOR_TYPE) {
|
||||||
menu.setHeaderIcon(android.R.drawable.ic_menu_gallery);
|
menu.setHeaderIcon(android.R.drawable.ic_menu_gallery);
|
||||||
|
|
Loading…
Reference in New Issue