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

关于dumpsys window visible存在取色不准确的修改建议 #5

Open
huhuime opened this issue Jun 9, 2021 · 0 comments
Open

Comments

@huhuime
Copy link

huhuime commented Jun 9, 2021

有些界面有多个window设置了多个不同的状态栏颜色导致取色不准确,建议把
"dumpsys window visible | grep LIGHT_"
改成
"dumpsys window visible | grep -B 6 LIGHT_ | grep "+classname(AccessibilityEvent event.getClassName().toString()))
好像还是有些问题,只能写排除上层页面的了
dumpsys window visible | grep -B 6 LIGHT_
然后判断内容是否包含上个Activity了
无奈了,网易云和酷安会得到相反的结果
只能处理特征情况了
fl=KEEP_SCREEN_ON

避免取色错误
比如在网易云的界面就存在问题
image

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