Loading core/java/android/accessibilityservice/AccessibilityService.java +8 −2 Original line number Diff line number Diff line Loading @@ -2074,6 +2074,10 @@ public abstract class AccessibilityService extends Service { if (WINDOW_SERVICE.equals(name)) { if (mWindowManager == null) { mWindowManager = (WindowManager) getBaseContext().getSystemService(name); final WindowManagerImpl wm = (WindowManagerImpl) mWindowManager; // Set e default token obtained from the connection to ensure client could use // accessibility overlay. wm.setDefaultToken(mWindowToken); } return mWindowManager; } Loading Loading @@ -2182,8 +2186,10 @@ public abstract class AccessibilityService extends Service { // The client may have already obtained the window manager, so // update the default token on whatever manager we gave them. final WindowManagerImpl wm = (WindowManagerImpl) getSystemService(WINDOW_SERVICE); wm.setDefaultToken(windowToken); if (mWindowManager != null) { final WindowManagerImpl wm = (WindowManagerImpl) mWindowManager; wm.setDefaultToken(mWindowToken); } } @Override Loading Loading
core/java/android/accessibilityservice/AccessibilityService.java +8 −2 Original line number Diff line number Diff line Loading @@ -2074,6 +2074,10 @@ public abstract class AccessibilityService extends Service { if (WINDOW_SERVICE.equals(name)) { if (mWindowManager == null) { mWindowManager = (WindowManager) getBaseContext().getSystemService(name); final WindowManagerImpl wm = (WindowManagerImpl) mWindowManager; // Set e default token obtained from the connection to ensure client could use // accessibility overlay. wm.setDefaultToken(mWindowToken); } return mWindowManager; } Loading Loading @@ -2182,8 +2186,10 @@ public abstract class AccessibilityService extends Service { // The client may have already obtained the window manager, so // update the default token on whatever manager we gave them. final WindowManagerImpl wm = (WindowManagerImpl) getSystemService(WINDOW_SERVICE); wm.setDefaultToken(windowToken); if (mWindowManager != null) { final WindowManagerImpl wm = (WindowManagerImpl) mWindowManager; wm.setDefaultToken(mWindowToken); } } @Override Loading