Updated Configurations.
Replaced "Switch" statement to "If-Else" because Android complained that
it isn't possible to use switch with resource names directly. I don't
know why, because I was using it that way. Then suddenly it started
complaining.