Fixed custom pattern text not re-rendering: Fixed the custom pattern label (e.g., (4, 5, 2 ,3) not re-rendering correctly — this was happening because I was updating mutating the steps array directly instead of cloning it. A classic.
Fix spacing to avoid LayoutAnimation issues: Lol. TIL. Running LayoutAnimation in the settings sub-screen where enable the custom pattern toggle was trigger a layout animation on the base setting screen that sometimes was cutting off the custom pattern steps label.
Prevent double navigations: Forgot to replace push with navigate. This fixes the double navigation issue where you would navigate to the same screen multiple times if you tapped on a button in a rapid succession.
Follow MD spacing on settings screen: Not super happy with it, but I aligned the settings with the app-bar title as per MD guidelines. Also moved the radio buttons to the left. Meh.
Use Android immersive mode instead of transparent navigation bar: The transparent navigation bar was causing way too many issues. So I moved the app to sticky-immersive mode instead (meaning the nav and status bar hide after n milliseconds and can be shown again with a swipe from the bottom).
(4, 5, 2 ,3)
not re-rendering correctly — this was happening because I was updating mutating the steps array directly instead of cloning it. A classic.push
withnavigate
. This fixes the double navigation issue where you would navigate to the same screen multiple times if you tapped on a button in a rapid succession.