CookieManager: apply NewPipe hack also to NewPipe forks

This commit is contained in:
Julian Winkler 2025-04-09 12:37:04 +02:00
parent 882cd1b471
commit 0b5ab83933

View file

@ -11,6 +11,10 @@ public class CookieManager {
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();
}