diff options
Diffstat (limited to 'android/support/v4/graphics/TypefaceCompatApi24Impl.java')
-rw-r--r-- | android/support/v4/graphics/TypefaceCompatApi24Impl.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/android/support/v4/graphics/TypefaceCompatApi24Impl.java b/android/support/v4/graphics/TypefaceCompatApi24Impl.java index 89a6ec40..a8c19888 100644 --- a/android/support/v4/graphics/TypefaceCompatApi24Impl.java +++ b/android/support/v4/graphics/TypefaceCompatApi24Impl.java @@ -159,8 +159,7 @@ class TypefaceCompatApi24Impl extends TypefaceCompatBaseImpl { if (buffer == null) { return null; } - // TODO: support ttc index. - if (!addFontWeightStyle(family, buffer, 0, e.getWeight(), e.isItalic())) { + if (!addFontWeightStyle(family, buffer, e.getTtcIndex(), e.getWeight(), e.isItalic())) { return null; } } |