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) {
case FontFamily.ROBOTO:
switch (textWeight) {
case TextWeight.NORMAL:
typefaceValue = Typefaces.ROBOTO_REGULAR;
break;
case TextWeight.THIN:
typefaceValue = Typefaces.ROBOTO_THIN;
break;
case TextWeight.LIGHT:
typefaceValue = Typefaces.ROBOTO_LIGHT;
break;
case TextWeight.NORMAL:
typefaceValue = Typefaces.ROBOTO_REGULAR;
break;
case TextWeight.MEDIUM:
case TextWeight.BOLD:
typefaceValue = Typefaces.ROBOTO_MEDIUM;
@@ -45,7 +45,7 @@ public class TypefaceManager {
break;
}
break;
case FontFamily.SYSTEM_FONT:
switch (textWeight) {
case TextWeight.THIN: