Skip to content

Commit

Permalink
[TypefaceUtils] clean up code smell
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 426161045
  • Loading branch information
veganafro authored and pekingme committed Feb 4, 2022
1 parent 2d90a7a commit 810541e
Showing 1 changed file with 8 additions and 8 deletions.
Expand Up @@ -38,7 +38,14 @@ public class TypefaceUtils {

private TypefaceUtils() {}

// Clones a typeface with additional boldness (weight).
/** Clones a typeface with additional boldness (weight). */
@Nullable
public static Typeface maybeCopyWithFontWeightAdjustment(
@NonNull Context context, @NonNull Typeface typeface) {
return maybeCopyWithFontWeightAdjustment(context.getResources().getConfiguration(), typeface);
}

/** Clones a typeface with additional boldness (weight). */
@Nullable
public static Typeface maybeCopyWithFontWeightAdjustment(
@NonNull Configuration configuration, @NonNull Typeface typeface) {
Expand All @@ -54,11 +61,4 @@ public static Typeface maybeCopyWithFontWeightAdjustment(
}
return null;
}

// Clones a typeface with additional boldness (weight).
@Nullable
public static Typeface maybeCopyWithFontWeightAdjustment(
@NonNull Context context, @NonNull Typeface typeface) {
return maybeCopyWithFontWeightAdjustment(context.getResources().getConfiguration(), typeface);
}
}

0 comments on commit 810541e

Please sign in to comment.