Replace if..else-if with a switch

To enhance readability, use a switch instead of multiple else-ifs.

Bug: 182205982
Test: builds successfully
Test: No CTS Tests. Flag to use new app is turned off by default

Change-Id: Id8ca634b683e17984dc67fd273a6a356e467b2f8
3 files changed