io2015-codelabs
io2015-codelabs copied to clipboard
CameraFragment.java, startVoiceTimer(), isTimerSpecified() methods are not missing from guided lab example but are added several steps after they are referenced.
For API 23,
The lab would have you paste into the onResume callback this: if (getActivity().isVoiceInteraction()) { if (isTimerSpecified()) { startVoiceTimer(); } else { startVoiceTrigger(); } }
A startVoiceTrigger() method is in the lab but a startVoiceTimer() and isTimerSpecified() is not in the lab.
I recognize that if you follow the steps in the lab from beginning to end, the code compiles, but I don't really understand why all of the steps to add logic to the CameraFragment class are separated by 3 lab steps. At step 9, Android Studio barked at me (red source code text) for the missing methods. I spent several minutes looking for errors in my code & then filed this bug. I ultimately found the code at the end of the lab. It would be better to make them adjacent steps along with code comments that indicated the missing methods would be added in subsequent steps.