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

Fix restarting Wolvic #950

Merged
merged 1 commit into from Sep 5, 2023
Merged

Fix restarting Wolvic #950

merged 1 commit into from Sep 5, 2023

Conversation

HollowMan6
Copy link
Collaborator

Resolves #949

Based on the answer from https://stackoverflow.com/a/71392776

This works with Android > 10, tested up to Android 13 (preview).

Someone said that they also tested in Android 7 and it works well.

Since Android 10, you can't launch from the background, so the old method is no longer working:
https://developer.android.com/guide/components/activities/background-starts

The new one no longer needs to schedule a start from the background, so just remove the scheduled way of restarting.

Copy link
Member

@svillar svillar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works amazingly well, just some minor comments

Resolves #949

Based on the answer from https://stackoverflow.com/a/71392776

This works with Android > 10, tested up to Android 13 (preview).

Someone said that they also tested in Android 7 and it works well.

Since Android 10, you can't launch from the background, so the old
method is no longer working:
https://developer.android.com/guide/components/activities/background-starts

The new one no longer needs to schedule a start from the background,
so just remove the scheduled way of restarting.

Signed-off-by: Songlin Jiang <sjiang@igalia.com>
@svillar svillar merged commit cc56cd5 into main Sep 5, 2023
7 checks passed
@svillar svillar deleted the fix-restart branch September 5, 2023 13:36
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

Successfully merging this pull request may close these issues.

"RESTART NOW" does not restart
2 participants