Skip to content

Commit 135466b

Browse files
committed
移除android tv按键刷新网页
1 parent 42e3d17 commit 135466b

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

apps/android-tv/app/src/main/java/com/moontvplus/tv/MainActivity.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import android.graphics.Bitmap;
66
import android.net.http.SslError;
77
import android.os.Bundle;
8-
import android.view.KeyEvent;
98
import android.view.View;
109
import android.view.ViewGroup;
1110
import android.view.Window;
@@ -150,15 +149,6 @@ private void hideCustomView() {
150149
}
151150
}
152151

153-
@Override
154-
public boolean dispatchKeyEvent(KeyEvent event) {
155-
if (event.getKeyCode() == KeyEvent.KEYCODE_MENU && event.getAction() == KeyEvent.ACTION_UP) {
156-
webView.reload();
157-
return true;
158-
}
159-
return super.dispatchKeyEvent(event);
160-
}
161-
162152
@Override
163153
public void onBackPressed() {
164154
if (customView != null) {

0 commit comments

Comments
 (0)