@Override protected void afterHookedMethod(MethodHookParam param) throws Throwable { if (Common.LAUNCHER_INSTANCE == null) return; if ((Boolean) callMethod(Common.LAUNCHER_INSTANCE, Methods.launcherHasCustomContentToLeft) && !Common.IS_DRAGGING) { GoogleSearchBarHooks.hideSearchbar(); } }
@Override protected void afterHookedMethod(MethodHookParam param) throws Throwable { if (Common.LAUNCHER_INSTANCE == null) { return; } boolean hasGNowEnabled = (Boolean) callMethod(Common.LAUNCHER_INSTANCE, "hasCustomContentToLeft"); if ((hasGNowEnabled && getIntField(Common.WORKSPACE_INSTANCE, Fields.workspaceCurrentPage) != 0) || !hasGNowEnabled) { // hide the search bar on stop search GoogleSearchBarHooks.hideSearchbar(); } }