Files
android_translation_layer/src/api-impl/android/webkit/CookieManager.java
2025-04-09 12:37:04 +02:00

27 lines
822 B
Java

package android.webkit;
import android.content.Context;
class ValueCallback {}
public class CookieManager {
public static CookieManager getInstance() {
// HACK: disable NewPipe's WebView based PoToken generator for now
if (Context.this_application.getPackageName().equals("org.schabi.newpipe")) {
throw new RuntimeException("CookieManager not yet fully implemented");
}
try { // also handle NewPipe forks which can have a different packagename
Class.forName("org.schabi.newpipe.util.potoken.PoTokenWebView");
throw new RuntimeException("CookieManager not yet fully implemented");
} catch (ClassNotFoundException e) {}
return new CookieManager();
}
public void removeAllCookies(ValueCallback callback) {}
public void removeSessionCookies(ValueCallback callback) {}
public void flush() {}
}