Skip to content

Commit a9cefe4

Browse files
committed
#
1 parent 78ed7cf commit a9cefe4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

library/src/main/java/com/just/library/AgentWebView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ && getSettings().getJavaScriptEnabled()
431431
&& isAccessibilityEnabled()) {
432432
try {
433433
try {
434-
URLEncoder.encode(String.valueOf(new URI(url)),null);
434+
URLEncoder.encode(String.valueOf(new URI(url)), "utf-8");
435435
// URLEncodedUtils.parse(new URI(url), null); // AccessibilityInjector.getAxsUrlParameterValue
436436
} catch (IllegalArgumentException e) {
437437
if ("bad parameter".equals(e.getMessage())) {

library/src/main/java/com/just/library/VideoImpl.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@ public void onShowCustomView(View view, WebChromeClient.CustomViewCallback callb
4343
// mActivity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
4444

4545

46-
/* LogUtils.i(TAG, "flags:" + (mActivity.getWindow().getAttributes().flags & WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON));
46+
/* LogUtils.i(TAG, "flags:" + (mActivity.getWindow().getAttributes().flags & WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON));
4747
if ((mActivity.getWindow().getAttributes().flags & WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON) == 0) {
4848
4949
}
5050
mActivity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
5151
52-
LogUtils.i(TAG, "flags:" + (mActivity.getWindow().getAttributes().flags & WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON));*/
52+
LogUtils.i(TAG, "flags:" + (mActivity.getWindow().getAttributes().flags & WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON));
53+
mActivity.getWindow().setFlags();*/
5354
if (moiveView != null) {
5455
callback.onCustomViewHidden();
5556
return;

0 commit comments

Comments
 (0)