The code is a reference implementation for an Android OS application that captures video, uploads it to YouTube, and submits the video to a YouTube Direct Lite instance.
Inside UploadsListFragment, the consent dialog is getting launched
automatically, without user intervention during onConnectionFailed.
After the consent dialog is launched, onStart gets triggered again
causing a subsequent connect/onConnectionFailed cycle.