-
Notifications
You must be signed in to change notification settings - Fork 389
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
Improve Splash Screen and Launcher Icon for Android #840
Conversation
WalkthroughThis update primarily focuses on enhancing the visual aspects of the Android application, introducing changes to the adaptive icon configuration and splash screen styles for both regular and night modes. Additionally, minor formatting adjustments have been made to the web app's HTML code. Changes
Uplevel your code reviews with Entelligence.AI ProEntelligence.AI ProIf you like this project, please support us by purchasing the Pro version. The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, Entelligence.AI Pro is free for open source projects. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Files selected (5)
- app/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml (1)
- app/android/app/src/main/res/values-night-v31/styles.xml (1)
- app/android/app/src/main/res/values-v31/styles.xml (1)
- app/ios/Runner/Info.plist (1)
- app/web/index.html (1)
Files ignored due to filter (32)
- app/android/app/src/main/res/drawable-hdpi/android12splash.png
- app/android/app/src/main/res/drawable-mdpi/android12splash.png
- app/android/app/src/main/res/drawable-night-hdpi/android12splash.png
- app/android/app/src/main/res/drawable-night-mdpi/android12splash.png
- app/android/app/src/main/res/drawable-night-xhdpi/android12splash.png
- app/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png
- app/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png
- app/android/app/src/main/res/drawable-xhdpi/android12splash.png
- app/android/app/src/main/res/drawable-xxhdpi/android12splash.png
- app/android/app/src/main/res/drawable-xxxhdpi/android12splash.png
- app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
- app/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png
- app/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
- app/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png
- app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
- app/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png
- app/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
- app/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png
- app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
- app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png
- app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
- app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png
- app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
- app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png
- app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
- app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png
- app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
- app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png
- app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
- app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png
- app/assets/images/splash_icon.png
- app/pubspec.yaml
Files not summarized due to errors (1)
- app/ios/Runner/Info.plist (diff tokens exceeds limit)
Files skipped from review due to trivial changes (1)
- app/web/index.html
Review comments generated (4)
- Review: 2
- LGTM: 2
Tips
Chat with Entelligence.AI Bot (@Entelligence.AI
)
- Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
- Invite the bot into a review comment chain by tagging
@Entelligence.AI
in a reply.
Code suggestions
- The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
- You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.
Pausing incremental reviews
- Add
@Entelligence.AI: ignore
anywhere in the PR description to pause further reviews from the bot.
@@ -10,6 +10,7 @@ | |||
<item name="android:windowDrawsSystemBarBackgrounds">false</item> | |||
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item> | |||
<item name="android:windowSplashScreenBackground">#000000</item> | |||
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new splash screen animated icon is targeting Android 12+ devices. However, it's important to ensure that the @drawable/android12splash
resource exists and is compatible with the devices you're targeting. If the drawable resource is not found or incompatible, it could cause a crash on app startup.
- <item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
+ <item name="android:windowSplashScreenAnimatedIcon">@drawable/compatible_splash_icon</item>
In the above fix, replace compatible_splash_icon
with an existing and compatible drawable resource for your application.
@@ -10,6 +10,7 @@ | |||
<item name="android:windowDrawsSystemBarBackgrounds">false</item> | |||
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item> | |||
<item name="android:windowSplashScreenBackground">#000000</item> | |||
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new splash screen animation is targeting Android 12+ devices. However, it's important to ensure that the @drawable/android12splash
resource exists and is compatible with the devices you're targeting. If this drawable isn't available or isn't properly formatted, it could cause crashes on startup. It would be beneficial to add error handling around this to prevent potential issues.
- <item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
+ <!-- Ensure the drawable resource exists and is compatible with the targeted devices -->
+ <item name="android:windowSplashScreenAnimatedIcon" tools:ignore="MissingResource">@drawable/android12splash</item>
Please note that tools:ignore="MissingResource"
is used to suppress lint warnings about missing resources in the XML file. This doesn't provide a runtime safety net. You should still ensure that the resource is available at runtime.
Splash Screen on Android 12+
Summary by Entelligence.AI