Loading core/java/android/app/WindowContext.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -60,12 +60,12 @@ public class WindowContext extends ContextWrapper { if (token != null && !isWindowToken(token)) { if (token != null && !isWindowToken(token)) { throw new IllegalArgumentException("Token must be registered to server."); throw new IllegalArgumentException("Token must be registered to server."); } } mToken = token != null ? token : new Binder(); final ContextImpl contextImpl = createBaseWindowContext(base, token); final ContextImpl contextImpl = createBaseWindowContext(base, mToken); attachBaseContext(contextImpl); attachBaseContext(contextImpl); contextImpl.setOuterContext(this); contextImpl.setOuterContext(this); mToken = token != null ? token : new Binder(); mDisplayId = getDisplayId(); mDisplayId = getDisplayId(); mWindowManager = new WindowManagerImpl(this); mWindowManager = new WindowManagerImpl(this); mWindowManager.setDefaultToken(mToken); mWindowManager.setDefaultToken(mToken); Loading Loading
core/java/android/app/WindowContext.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -60,12 +60,12 @@ public class WindowContext extends ContextWrapper { if (token != null && !isWindowToken(token)) { if (token != null && !isWindowToken(token)) { throw new IllegalArgumentException("Token must be registered to server."); throw new IllegalArgumentException("Token must be registered to server."); } } mToken = token != null ? token : new Binder(); final ContextImpl contextImpl = createBaseWindowContext(base, token); final ContextImpl contextImpl = createBaseWindowContext(base, mToken); attachBaseContext(contextImpl); attachBaseContext(contextImpl); contextImpl.setOuterContext(this); contextImpl.setOuterContext(this); mToken = token != null ? token : new Binder(); mDisplayId = getDisplayId(); mDisplayId = getDisplayId(); mWindowManager = new WindowManagerImpl(this); mWindowManager = new WindowManagerImpl(this); mWindowManager.setDefaultToken(mToken); mWindowManager.setDefaultToken(mToken); Loading