Repository navigation
aosp: Show the network error dialog - #13273
Merged
Merged
Conversation
SbSystemRaisePlatformError() was a stub on AOSP that returned false. So when the first page failed to load, for example on an offline cold launch, no network dialog appeared and the app stayed on a black screen. Use the Android implementation. Add an AOSP version of PlatformError, raised from the AOSP StarboardBridge, since the Android TV one depends on classes AOSP doesn't build. Like on Android TV, retry once the device is back online. Test: A cold launch with Wi-Fi off shows the network dialog instead of a black screen. Turning Wi-Fi back on reloads the page. Try again reloads, and Dismiss exits. Bug: 570462369
Contributor
|
Contributor
🤖 Gemini Suggested Commit Message💡 Pro Tips for a Better Commit Message:
|
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces an AOSP-specific implementation of PlatformError to handle platform error dialogs and network retry logic, integrating it into the Starboard build configuration and updating StarboardBridge and MainActivity to use it. Feedback on these changes highlights two key areas: first, the new PlatformError class needs a comprehensive class comment documenting its purpose, lifetime, and threading model to comply with the repository style guide; second, a potential memory leak in unregisterNetworkCallback should be addressed by safely falling back to the dialog's context if the activity has already been destroyed.
ckim1346
requested changes
Oct 9, 2026
ckim1346
approved these changes
Oct 9, 2026
sacuff
enabled auto-merge (squash)
October 9, 2026 21:45
briantting
pushed a commit
that referenced
this pull request
Oct 14, 2026
Refer to original PR: #13273 SbSystemRaisePlatformError() was a stub on AOSP that returned false. So when the first page failed to load, for example on an offline cold launch, no network dialog appeared and the app stayed on a black screen. Use the Android implementation. Add an AOSP version of PlatformError, raised from the AOSP StarboardBridge, since the Android TV one depends on classes AOSP doesn't build. Like on Android TV, retry once the device is back online. Test: A cold launch with Wi-Fi off shows the network dialog instead of a black screen. Turning Wi-Fi back on reloads the page. Try again reloads, and Dismiss exits. Fixed: 570462369 (cherry picked from commit 2416ea7)
briantting
pushed a commit
that referenced
this pull request
Oct 16, 2026
Refer to original PR: #13273 SbSystemRaisePlatformError() was a stub on AOSP that returned false. So when the first page failed to load, for example on an offline cold launch, no network dialog appeared and the app stayed on a black screen. Use the Android implementation. Add an AOSP version of PlatformError, raised from the AOSP StarboardBridge, since the Android TV one depends on classes AOSP doesn't build. Like on Android TV, retry once the device is back online. Test: A cold launch with Wi-Fi off shows the network dialog instead of a black screen. Turning Wi-Fi back on reloads the page. Try again reloads, and Dismiss exits. Fixed: 570462369 (cherry picked from commit 2416ea7)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
SbSystemRaisePlatformError() was a stub on AOSP that returned false. So when the first page failed to load, for example on an offline cold launch, no network dialog appeared and the app stayed on a black screen.
Use the Android implementation. Add an AOSP version of PlatformError, raised from the AOSP StarboardBridge, since the Android TV one depends on classes AOSP doesn't build. Like on Android TV, retry once the device is back online.
Test: A cold launch with Wi-Fi off shows the network dialog instead of a black screen. Turning Wi-Fi back on reloads the page. Try again reloads, and Dismiss exits.
Fixed: 570462369