Browse Source

3.1.2 release

sense5
Mikanoshi 5 years ago
parent
commit
d3c7ef305c
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      OneToolbox/src/com/langerhans/one/mods/OtherMods.java

+ 6
- 1
OneToolbox/src/com/langerhans/one/mods/OtherMods.java View File

@@ -1171,7 +1171,12 @@ public class OtherMods{
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
try {
Activity act = (Activity)param.thisObject;
if (act != null) act.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED);
if (act != null) {
int softMode = act.getWindow().getAttributes().softInputMode;
if ((softMode & WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE) == WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE ||
(softMode & WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE) == WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE)
act.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED);
}
} catch (Throwable t) {
XposedBridge.log(t);
}


Loading…
Cancel
Save