Loading core/java/android/widget/TextView.java +5 −4 Original line number Diff line number Diff line Loading @@ -877,7 +877,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener case com.android.internal.R.styleable.TextAppearance_fontFamily: try { fontTypeface = appearance.getFont(attr); } catch (UnsupportedOperationException e) { } catch (UnsupportedOperationException | Resources.NotFoundException e) { // Expected if it is not a font resource. } if (fontTypeface == null) { Loading Loading @@ -1194,8 +1194,9 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener case com.android.internal.R.styleable.TextView_fontFamily: try { fontTypeface = a.getFont(attr); } catch (UnsupportedOperationException e) { // Expected if it is not a font resource. } catch (UnsupportedOperationException | Resources.NotFoundException e) { // Expected if it is not a resource reference or if it is a reference to // another resource type. } if (fontTypeface == null) { fontFamily = a.getString(attr); Loading Loading @@ -3325,7 +3326,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener String fontFamily = null; try { fontTypeface = ta.getFont(R.styleable.TextAppearance_fontFamily); } catch (UnsupportedOperationException e) { } catch (UnsupportedOperationException | Resources.NotFoundException e) { // Expected if it is not a font resource. } if (fontTypeface == null) { Loading Loading
core/java/android/widget/TextView.java +5 −4 Original line number Diff line number Diff line Loading @@ -877,7 +877,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener case com.android.internal.R.styleable.TextAppearance_fontFamily: try { fontTypeface = appearance.getFont(attr); } catch (UnsupportedOperationException e) { } catch (UnsupportedOperationException | Resources.NotFoundException e) { // Expected if it is not a font resource. } if (fontTypeface == null) { Loading Loading @@ -1194,8 +1194,9 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener case com.android.internal.R.styleable.TextView_fontFamily: try { fontTypeface = a.getFont(attr); } catch (UnsupportedOperationException e) { // Expected if it is not a font resource. } catch (UnsupportedOperationException | Resources.NotFoundException e) { // Expected if it is not a resource reference or if it is a reference to // another resource type. } if (fontTypeface == null) { fontFamily = a.getString(attr); Loading Loading @@ -3325,7 +3326,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener String fontFamily = null; try { fontTypeface = ta.getFont(R.styleable.TextAppearance_fontFamily); } catch (UnsupportedOperationException e) { } catch (UnsupportedOperationException | Resources.NotFoundException e) { // Expected if it is not a font resource. } if (fontTypeface == null) { Loading