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

Setup: Don't hang if setup checks take longer, show a loading state instead :) #1119

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

d4rken
Copy link
Member

@d4rken d4rken commented Apr 5, 2024

Previously setup modules could only emit their state or nothing. In some cases this lead to the dashboard hanging, because SD Maid was endlessly waiting for the state from the ShizukuSetupModule. Now every setup module can emit a Loading state and then later a Current state (does not have to be final). This allows us to show "loading states" for each module.

The dashboard will now load faster because we are not waiting for any setup states. Should loading any setup state take longer than 3 seconds, then we will show a setup card with a loading indicator. If there are loading states, but also incomplete setup steps, then the setup card will directly be shown. If you enter the setup screen incomplete items will be shown with loading cards in the list.

Closes #1116

@d4rken d4rken added enhancement New feature, request, improvement or optimization c: Setup ADB ADB/Shizuku related labels Apr 5, 2024
…nstead :)

Previously setup modules could only emit their state or nothing.
In some cases this lead to the dashboard hanging, because SD Maid was endlessly waiting for the state from the ShizukuSetupModule.
Now every setup module can emit a `Loading` state and then later a `Current` state (does not have to be final).
This allows us to show "loading states" for each module.

The dashboard will now load faster because we are not waiting for any setup states.
Should loading any setup state take longer than 3 seconds, then we will show a setup card with a loading indicator.
If there are loading states, but also incomplete setup steps, then the setup card will directly be shown.
If you enter the setup screen incomplete items will be shown with loading cards in the list.

Closes #1116
@d4rken d4rken merged commit 5071a8d into main Apr 5, 2024
16 checks passed
@d4rken d4rken deleted the shizuku_setupfix branch April 5, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADB ADB/Shizuku related c: Setup enhancement New feature, request, improvement or optimization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shizuku setup is behaving erratically
1 participant