Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.4中和三方库冲突 #100

Open
Nstd opened this issue Nov 28, 2018 · 1 comment
Open

4.4中和三方库冲突 #100

Nstd opened this issue Nov 28, 2018 · 1 comment

Comments

@Nstd
Copy link

Nstd commented Nov 28, 2018

implementation 'com.jaeger.statusbarutil:library:1.4.0'
4.4的系统,使用了这个库
ChattingResolvedFragmentActivity中设置StatusBarUtil.setColor(this, Color.parseColor("#ff00ff"));
点击面板切换(从输入法切到面板)的时候显示异常,需要点两次才能正常显示面板,第一次显示为空

@Nstd
Copy link
Author

Nstd commented Dec 24, 2018

还有个问题,在4.4的系统上,使用StatusBarUtil,如果是在setContent()之后设置的状态栏颜色,会导致KPSwitchRootLayoutHandler 中的 mIsTranslucentStatus 为false(首次初始化以后就不更新了),但是KPSwitchConflictUtil 中的isHandleByPlaceholder(final Activity activity) 方法是动态检测ViewUtil.isTranslucentStatus(activity)的,检测时会变成true,两边不一致,会导致,4.4的机器上,无法正常打开(或者关闭)panel。
我现在的做法是,在一切初始化完成以后,手动反射 KPSwitchRootLayoutHandler 中的 mIsTranslucentStatus,更新其实际状态值,可以修复这个问题,能否开个方法动态更新这个值,或者每次重新计算?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant