Skip to content

Commit

Permalink
Make TabView a public final class since a field of that type is in th…
Browse files Browse the repository at this point in the history
  • Loading branch information
ldjcmu committed Oct 4, 2019
1 parent 20f5c93 commit 2966cfb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/java/com/google/android/material/tabs/TabLayout.java
Expand Up @@ -2212,7 +2212,8 @@ void reset() {
}
}

class TabView extends LinearLayout {
/** A {@link LinearLayout} containing {@link Tab} instances for use with {@link TabLayout}. */
public final class TabView extends LinearLayout {
private Tab tab;
private TextView textView;
private ImageView iconView;
Expand All @@ -2226,7 +2227,7 @@ class TabView extends LinearLayout {

private int defaultMaxLines = 2;

public TabView(Context context) {
public TabView(@NonNull Context context) {
super(context);
updateBackgroundDrawable(context);
ViewCompat.setPaddingRelative(
Expand Down Expand Up @@ -2798,6 +2799,7 @@ private int getContentWidth() {
return right - left;
}

@Nullable
public Tab getTab() {
return tab;
}
Expand Down

0 comments on commit 2966cfb

Please sign in to comment.