File tree Expand file tree Collapse file tree 3 files changed +0
-25
lines changed
Expand file tree Collapse file tree 3 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,6 @@ public void onPageFinished(String url) {
279279 }
280280
281281 if (!shouldInjectJavaScript (url )) {
282- mAccessibilityScriptInjected = false ;
283282 toggleFallbackAccessibilityInjector (true );
284283 return ;
285284 }
@@ -292,23 +291,6 @@ public void onPageFinished(String url) {
292291 mAccessibilityScriptInjected = true ;
293292 }
294293
295- /**
296- * Adjusts the accessibility injection state to reflect changes in the
297- * JavaScript enabled state.
298- *
299- * @param enabled Whether JavaScript is enabled.
300- */
301- public void updateJavaScriptEnabled (boolean enabled ) {
302- if (enabled ) {
303- addAccessibilityApisIfNecessary ();
304- } else {
305- removeAccessibilityApisIfNecessary ();
306- }
307-
308- // We have to reload the page after adding or removing APIs.
309- mWebView .reload ();
310- }
311-
312294 /**
313295 * Toggles the non-JavaScript method for handling accessibility.
314296 *
Original file line number Diff line number Diff line change @@ -1135,7 +1135,6 @@ public synchronized void setJavaScriptEnabled(boolean flag) {
11351135 if (mJavaScriptEnabled != flag ) {
11361136 mJavaScriptEnabled = flag ;
11371137 postSync ();
1138- mWebView .updateJavaScriptEnabled (flag );
11391138 }
11401139 }
11411140
Original file line number Diff line number Diff line change @@ -1626,12 +1626,6 @@ void updateMultiTouchSupport(Context context) {
16261626 mZoomManager .updateMultiTouchSupport (context );
16271627 }
16281628
1629- void updateJavaScriptEnabled (boolean enabled ) {
1630- if (isAccessibilityEnabled ()) {
1631- getAccessibilityInjector ().updateJavaScriptEnabled (enabled );
1632- }
1633- }
1634-
16351629 private void init () {
16361630 OnTrimMemoryListener .init (mContext );
16371631 mWebView .setWillNotDraw (false );
You can’t perform that action at this time.
0 commit comments