Skip to content

Commit

Permalink
An attempt to fix a resource not found crash seen on a small subset o…
Browse files Browse the repository at this point in the history
…f devices (e.g. Nexus 5X)
  • Loading branch information
christianrowlands committed Dec 26, 2023
1 parent c5c63b1 commit befa17b
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions networksurvey/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-keep class com.google.gson.reflect.TypeToken
-keep class * extends com.google.gson.reflect.TypeToken
-keep public class * implements java.lang.reflect.Type
-keep class com.google.android.material.** { *; }

# If you keep the line number information, uncomment this to
# hide the original source file name.
Expand Down
8 changes: 4 additions & 4 deletions networksurvey/src/main/res/drawable-anydpi/ic_dashboard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
android:tint="#FFFFFF"
android:alpha="0.8">
<group
android:scaleX="1.3333334"
android:scaleY="1.3333334"
android:translateX="-4"
android:translateY="-4">
android:scaleX="1.2631578"
android:scaleY="1.2631578"
android:translateX="-3.7894738"
android:translateY="-3.7894738">
<path
android:fillColor="@android:color/white"
android:pathData="M3,13h8L11,3L3,3v10zM3,21h8v-6L3,15v6zM13,21h8L21,11h-8v10zM13,3v6h8L21,3h-8z" />
Expand Down
Binary file modified networksurvey/src/main/res/drawable-hdpi/ic_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified networksurvey/src/main/res/drawable-mdpi/ic_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
10 changes: 5 additions & 5 deletions networksurvey/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

<!-- Base application theme. -->
<style name="NetworkSurveyTheme" parent="Theme.AppCompat.DayNight">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:colorPrimary">@color/colorPrimary</item>
<item name="android:colorAccent">@color/colorAccent</item>
<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
<item name="android:colorBackgroundFloating">@color/colorCardDark</item>
<item name="cardStyle">@style/CardViewTheme</item>
</style>
Expand All @@ -21,7 +21,7 @@
</style>

<style name="BottomNavigationTheme" parent="NetworkSurveyTheme">
<item name="colorPrimary">@color/activeTabColor</item>
<item name="android:colorPrimary">@color/activeTabColor</item>
<item name="android:textColorSecondary">@color/inactiveTabColor</item>
</style>

Expand Down

0 comments on commit befa17b

Please sign in to comment.