fix voiceapp move to background fail #2
+44
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
wake up the speaker after factory reset; this is because the app will become a hometask and cannot be moved to the background. In addition, even if it is moved to the background, it will be started multiple times. This commit changes the assignment logic of hometask and the background application movement logic to fix this problem
Impact
1. The wake-up animation can be started normally
2. Hometask can be assigned correctly
3. The same application will not be started multiple times
4. Optimized some implementations and the logic is clearer
Testing
1. Build and burn the image to the real machine
2. Wake up app after connecting to the Internet successfully and ensure that app can exit normally
3. Click to turn on smart life and continue to wake up, app can appear in the foreground and exit normally