diff options
| author | Kirill Grouchnikov <kirillg@google.com> | 2016-08-02 11:43:28 -0400 |
|---|---|---|
| committer | Kirill Grouchnikov <kirillg@google.com> | 2016-08-02 11:44:12 -0400 |
| commit | 90ac2ac5381143e148e76d2b75c232ebcbc4cfa4 (patch) | |
| tree | 7bc4728a87bbcb5d024fa63e6b9b6df354cd27f1 /core/java/android/widget/TabHost.java | |
| parent | 5d987633f2c1db2b5ac81b99412e094e082e786a (diff) | |
Document exception throwing in TabHost
Bug: 30589663
Change-Id: I2dc0ab0fff4d837a85bd1914f99711eca5dd73ca
Diffstat (limited to 'core/java/android/widget/TabHost.java')
| -rw-r--r-- | core/java/android/widget/TabHost.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/widget/TabHost.java b/core/java/android/widget/TabHost.java index 28d187c41823..583f037813f3 100644 --- a/core/java/android/widget/TabHost.java +++ b/core/java/android/widget/TabHost.java @@ -113,6 +113,7 @@ public class TabHost extends FrameLayout implements ViewTreeObserver.OnTouchMode * Creates a new {@link TabSpec} associated with this tab host. * * @param tag tag for the tab specification, must be non-null + * @throws IllegalArgumentException If the passed tag is null */ @NonNull public TabSpec newTabSpec(@NonNull String tag) { @@ -203,6 +204,8 @@ mTabHost.addTab(TAB_TAG_1, "Hello, world!", "Tab 1"); /** * Add a tab. * @param tabSpec Specifies how to create the indicator and content. + * @throws IllegalArgumentException If the passed tab spec has null indicator strategy and / or + * null content strategy. */ public void addTab(TabSpec tabSpec) { |
