Clean up radio.
- Do not hold on to references to fragments. This can cause errors when
"replace" is called for a fragment.
- Remove usage of commitAllowingStateLoss as this can lead to errors.
- Convert to lambdas where this would be clean.
- Switch as many variables to local ones where appropriate
- Remove casts on findViewById
- Miscellaneous code cleanup.
Test: started radio, switched between bands, added radio stations,
seeked between radio stations.
Change-Id: I6d8634f3b518e7cdda0b57c23bb7317b9632453d
19 files changed