weiciyuan
在编译weiciyuan这个项目的时候,在
public static void forceConvertActivityFromTranslucent(Activity activity) {
try {
Method method = Activity.class.getDeclaredMethod("convertFromTranslucent", null);
method.setAccessible(true);
method.invoke(activity,null);
} catch (Throwable ignored) {
}
}
有警告提示,需要修改一下,根据提示修改为:
public static void forceConvertActivityFromTranslucent(Activity activity) {
try {
Method method = Activity.class.getDeclaredMethod("convertFromTranslucent", new Class<?>[]{});
method.setAccessible(true);
method.invoke(activity,new Object[] {});
} catch (Throwable ignored) {
}
}
这样子就可以了。