diff options
| author | Alan Viverette <alanv@google.com> | 2017-02-03 18:51:03 +0000 |
|---|---|---|
| committer | Alan Viverette <alanv@google.com> | 2017-02-03 17:08:47 -0500 |
| commit | 177f37367e271964d5faf70cf19384f23ea8df0b (patch) | |
| tree | 677893c889a528da8045d28892d4ee50252b421a /core/java/android/widget/TabHost.java | |
| parent | e3ed795fae65cd9d3bad935fe3555878c8b8b560 (diff) | |
Revert "Implicitly cast views obtained via View.findView methods"
This reverts commit 06c2fffdaa81544522de751846754f781a9970a9.
Reason for revert: Java 8 doesn't support this magic.
Change-Id: Iaa41f4e4d0072b9a97cff9cd3788403d4ab79d13
Diffstat (limited to 'core/java/android/widget/TabHost.java')
| -rw-r--r-- | core/java/android/widget/TabHost.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/widget/TabHost.java b/core/java/android/widget/TabHost.java index 7e2cadfc8c45..32418cdb8240 100644 --- a/core/java/android/widget/TabHost.java +++ b/core/java/android/widget/TabHost.java @@ -619,7 +619,7 @@ mTabHost.addTab(TAB_TAG_1, "Hello, world!", "Tab 1"); mTabWidget, // tab widget is the parent false); // no inflate params - final TextView tv = tabIndicator.findViewById(R.id.title); + final TextView tv = (TextView) tabIndicator.findViewById(R.id.title); tv.setText(mLabel); if (context.getApplicationInfo().targetSdkVersion <= Build.VERSION_CODES.DONUT) { @@ -653,8 +653,8 @@ mTabHost.addTab(TAB_TAG_1, "Hello, world!", "Tab 1"); mTabWidget, // tab widget is the parent false); // no inflate params - final TextView tv = tabIndicator.findViewById(R.id.title); - final ImageView iconView = tabIndicator.findViewById(R.id.icon); + final TextView tv = (TextView) tabIndicator.findViewById(R.id.title); + final ImageView iconView = (ImageView) tabIndicator.findViewById(R.id.icon); // when icon is gone by default, we're in exclusive mode final boolean exclusive = iconView.getVisibility() == View.GONE; |
