Change switch-case to if-else

http://tools.android.com/tips/non-constant-fields

Build Environment
Win7 Ult 32-bit
Eclipse Juno Version: 4.2.2
Build id: M20130204-1200
ADT Version: 22.6.3.v201404151837-1123206
Merge pull request #8 from rezacute/minor-fix

Minor fix