-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): 插件Activity在getSystemService时默认委托给宿主Activity
而不是像ShadowContext一样默认委托给baseContext。 baseContext可能不是一个Activity,导致Dialog等代码在 getSystemService(Context.WINDOW_SERVICE)时, 得到的WindowManager缺少mParentWindow。进而在 WindowManagerGlobal#addView时,依赖 mParentWindow.adjustLayoutParamsForSubWindow初始化 WindowManager.LayoutParams的token时失败。 从而导致Dialog.show会抛出"token is null"异常。 fix #640
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters