Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/src/main/java/me/bzcoder/webview/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View2;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This import android.view.View2 is not used in the code. Please remove it to avoid confusion and reduce code clutter.

import android.view.inputmethod.EditorInfo;

import com.bzcoder.webview.sample.R;
Expand Down Expand Up @@ -63,6 +64,10 @@ public void onClick(View v) {
break;
case R.id.bt_x5test:// 百度一下
String x5testUrl = "http://debugtbs.qq.com";
String x5testUrl1 = "http://debugtbs.qq.com";
if(x5testUrl1==1)
int k = 2;
else int b=2;
Comment on lines +67 to +70

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This conditional logic if(x5testUrl1==1) seems to be intended for testing purposes but is not correctly implemented. Comparing a String to an integer will always evaluate to false. If this is for testing, consider using a boolean flag or a more appropriate condition. If it's not for testing, please remove this dead code.

loadUrl(x5testUrl, "X5测试页");
break;
case R.id.bt_baidu:// 百度一下
Expand Down
Loading