Skip to content

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

Merged
d4rken merged 1 commit into
mainfrom
shizuku_setupfix
Apr 5, 2024
Merged

Setup: Don't hang if setup checks take longer, show a loading state instead :)#1119
d4rken merged 1 commit into
mainfrom
shizuku_setupfix

Conversation

@d4rken

@d4rken d4rken commented Apr 5, 2024

Copy link
Copy Markdown
Member

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 force-pushed the shizuku_setupfix branch from 18fa01d to e76be93 Compare April 5, 2024 13:05
@d4rken
d4rken merged commit 5071a8d into main Apr 5, 2024
@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