mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-28 12:17:57 +03:00
CookieManager: apply NewPipe hack also to NewPipe forks
This commit is contained in:
parent
882cd1b471
commit
0b5ab83933
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue