Change switch case order

This commit is contained in:
Moez Bhatti
2015-11-14 19:34:18 -05:00
parent dbf052bac7
commit 4872427be5
@@ -16,15 +16,15 @@ public class TypefaceManager {
switch (fontFamily) { switch (fontFamily) {
case FontFamily.ROBOTO: case FontFamily.ROBOTO:
switch (textWeight) { switch (textWeight) {
case TextWeight.NORMAL:
typefaceValue = Typefaces.ROBOTO_REGULAR;
break;
case TextWeight.THIN: case TextWeight.THIN:
typefaceValue = Typefaces.ROBOTO_THIN; typefaceValue = Typefaces.ROBOTO_THIN;
break; break;
case TextWeight.LIGHT: case TextWeight.LIGHT:
typefaceValue = Typefaces.ROBOTO_LIGHT; typefaceValue = Typefaces.ROBOTO_LIGHT;
break; break;
case TextWeight.NORMAL:
typefaceValue = Typefaces.ROBOTO_REGULAR;
break;
case TextWeight.MEDIUM: case TextWeight.MEDIUM:
case TextWeight.BOLD: case TextWeight.BOLD:
typefaceValue = Typefaces.ROBOTO_MEDIUM; typefaceValue = Typefaces.ROBOTO_MEDIUM;