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

AppUtils.isAppForeground 功能不对 #1303

Open
Reginer opened this issue Aug 14, 2020 · 1 comment
Open

AppUtils.isAppForeground 功能不对 #1303

Reginer opened this issue Aug 14, 2020 · 1 comment
Assignees
Labels
bug

Comments

@Reginer
Copy link

@Reginer Reginer commented Aug 14, 2020

版本 1.29.0

实现方式不对,这种方法实现不了判断应用是否在前台,在我8.1设备上全是true。

用UtilsActivityLifecycleImpl里那个mIsBackground

@Reginer Reginer added the bug label Aug 14, 2020
@Reginer
Copy link
Author

@Reginer Reginer commented Aug 14, 2020

原来UtilsActivityLifecycleImpl里的mIsBackground值也不对。

用了ProcessLifecycleOwner

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.