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:
OxygenCobalt
2022-03-27 11:23:07 -06:00
parent 05a5ef5c3f
commit e54a58c612
29 changed files with 165 additions and 116 deletions
+1 -1
View File
@@ -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>