Allow nested xposedcontextwrapper
This commit is contained in:
parent
31674f589e
commit
d9f3ac1bad
|
|
@ -5,7 +5,11 @@ import android.content.ContextWrapper;
|
||||||
|
|
||||||
public class XposedContextWrapper extends ContextWrapper implements XposedInterface {
|
public class XposedContextWrapper extends ContextWrapper implements XposedInterface {
|
||||||
|
|
||||||
public XposedContextWrapper(XposedContext base) {
|
XposedContextWrapper(XposedContext base) {
|
||||||
|
super(base);
|
||||||
|
}
|
||||||
|
|
||||||
|
public XposedContextWrapper(XposedContextWrapper base) {
|
||||||
super(base);
|
super(base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -31,7 +35,7 @@ public class XposedContextWrapper extends ContextWrapper implements XposedInterf
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
final protected void attachBaseContext(Context base) {
|
final protected void attachBaseContext(Context base) {
|
||||||
if (base instanceof XposedContext) {
|
if (base instanceof XposedContext || base instanceof XposedContextWrapper) {
|
||||||
super.attachBaseContext(base);
|
super.attachBaseContext(base);
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue