Kyson / AndroidGodEye

An app performance monitor(APM) , like "Android Studio profiler", you can easily monitor the performance of your app real time in browser
Apache License 2.0
2.6k stars 344 forks source link

RxPermissionsFragment 冲突 #30

Closed JesseWo closed 5 years ago

JesseWo commented 6 years ago

初始化时, 这行代码 .install(new LeakConfig(this,new RxPermissionRequest()))导致crash, 必现. com.tbruyelle.rxpermissions2.RxPermissionsFragment cannot be cast to cn.hikyson.android.godeye.toolbox.rxpermission.RxPermissionsFragment 我项目中使用了RxPermissions;

Kyson commented 6 years ago

理论上这是两个不同的类,不会有问题的,如果不想用toolbox中的权限请求,可以自己实现一个PermissionRequest,类似RxPermissionRequest这样:

public class RxPermissionRequest implements PermissionRequest { @Override public Observable dispatchRequest(Activity activity, String... permissions) { return new RxPermissions(activity).request(permissions); } }

Kyson commented 5 years ago

@JesseWo 新版本删了这个类,理论上没有模块需要敏感权限...