Skip to content

Commit

Permalink
fix bootsplash and geojson crash errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tortuvshin committed Mar 25, 2024
1 parent 1ffd8a2 commit 155d7f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<application android:name=".MainApplication" android:label="@string/app_name"
android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@style/BootTheme" android:networkSecurityConfig="@xml/network_security_config"
android:theme="@style/AppTheme" android:networkSecurityConfig="@xml/network_security_config"
android:dataExtractionRules="@xml/data_extraction_rules" android:fullBackupContent="true"
tools:targetApi="s">
<!-- Change the value to true to enable pop-up for in foreground on receiving remote
Expand Down
9 changes: 5 additions & 4 deletions android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
<color name="white">#FFFFFF</color>

<!-- BootTheme should inherit from Theme.SplashScreen -->
<style name="BootTheme" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/bootsplash_background</item>
<item name="windowSplashScreenAnimatedIcon">@mipmap/bootsplash_logo</item>
<item name="postSplashScreenTheme">@style/AppTheme</item>

<style name="BootTheme" parent="Theme.BootSplash">
<item name="bootSplashBackground">@color/bootsplash_background</item>
<item name="bootSplashLogo">@mipmap/bootsplash_logo</item>
<item name="postBootSplashTheme">@style/AppTheme</item>
</style>
</resources>
2 changes: 1 addition & 1 deletion src/utils/Geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default class GeoUtil {
resolve(position);
}

googleAddress.setAttribute('position', position);
googleAddress?.setAttribute('position', position);

// save last known location
set('location', googleAddress.all());
Expand Down

0 comments on commit 155d7f1

Please sign in to comment.