Skip to content

Commit

Permalink
7.0以上的手机出现了插件输入框无法输入文字的bug,
Browse files Browse the repository at this point in the history
通过源码分析是因为7.0的手机在startInputOrWindowGainedFocus方法中检查uid, 还没到startInput这一步.
  • Loading branch information
dustookk committed Aug 10, 2017
1 parent 575afbc commit 7ee1be5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public IInputMethodManagerHookHandle(Context hostContext) {
protected void init() {
sHookedMethodHandlers.put("startInput", new startInput(mHostContext));
sHookedMethodHandlers.put("windowGainedFocus", new windowGainedFocus(mHostContext));
sHookedMethodHandlers.put("startInputOrWindowGainedFocus", new startInputOrWindowGainedFocus(mHostContext));
}

private class IInputMethodManagerHookedMethodHandler extends HookedMethodHandler {
Expand Down Expand Up @@ -78,4 +79,10 @@ public windowGainedFocus(Context hostContext) {
super(hostContext);
}
}

private class startInputOrWindowGainedFocus extends IInputMethodManagerHookedMethodHandler {
public startInputOrWindowGainedFocus(Context hostContext) {
super(hostContext);
}
}
}

0 comments on commit 7ee1be5

Please sign in to comment.