ui: audit null safety
Audit null safety to remove extraneous and stupid calls while optimizing certain checks here and there. This commit is primarily centered around the introduction of a new utility: unlikelyToBeNull. This call uses requireNotNull on debug builds and !! on release builds, which allows for bug catching in an easier manner on normal builds while also allowing for optimizations on the release builds.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<resources>
|
||||
<integer name="detail_app_bar_title_anim_duration">150</integer>
|
||||
|
||||
<!-- FIXME: This is really stupid, figure out how we can unify it with the IntegerTable object-->
|
||||
<!-- FIXME: Unify this with the integer table object by simply defining a class for each dependency. Will reduce bugs. -->
|
||||
<!-- Preference values -->
|
||||
<string-array name="entries_theme">
|
||||
<item>@string/set_theme_auto</item>
|
||||
|
||||
Reference in New Issue
Block a user