fixed telegram stickers issue speedup webview coloring refactored VKUIHook fixed duplication of eruda added a check for duplication of adding styles for coloring vkui
27 lines
747 B
Java
27 lines
747 B
Java
package ru.vtosters.hooks;
|
|
|
|
import android.util.Log;
|
|
import com.vk.api.internal.MethodCall;
|
|
|
|
import java.util.LinkedHashMap;
|
|
|
|
import static ru.vtosters.hooks.other.Preferences.dev;
|
|
|
|
public class RequestDumper {
|
|
public static void addParams(MethodCall.a paramslist, String method, LinkedHashMap<String, String> params, String apiver) {
|
|
if (method.contains("execute.getGiftByStickerId")) {
|
|
apiver = "5.186";
|
|
}
|
|
|
|
if (dev()) {
|
|
Log.d("RequestDumper", "Method: " + method);
|
|
Log.d("RequestDumper", "API version: " + apiver);
|
|
Log.d("RequestDumper", "Params: " + params);
|
|
}
|
|
|
|
paramslist.a(method);
|
|
paramslist.a(params);
|
|
paramslist.b(apiver);
|
|
}
|
|
}
|