From e71346fa0ab70ebf707cd6fac55f1788b77310f8 Mon Sep 17 00:00:00 2001 From: Kevin Hufnagle Date: Thu, 18 Jul 2019 12:50:31 -0700 Subject: [PATCH] docs: Fixed link in setCurrentTab() description Moving focus and selected tab requires focusCurrentTab(), not setCurrentTab(). Test: make ds-docs Bug: 137317608 Change-Id: I96f4f4c32cbf8a3dfa0aac8cfa6d6cd12e8f8259 --- core/java/android/widget/TabWidget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/widget/TabWidget.java b/core/java/android/widget/TabWidget.java index 49a0f39b3bad2..4c67b080252ab 100644 --- a/core/java/android/widget/TabWidget.java +++ b/core/java/android/widget/TabWidget.java @@ -433,7 +433,7 @@ public class TabWidget extends LinearLayout implements OnFocusChangeListener { * to the next tabbed view, in this example). *

* To move both the focus AND the selected tab at once, please use - * {@link #setCurrentTab}. Normally, the view logic takes care of + * {@link #focusCurrentTab}. Normally, the view logic takes care of * adjusting the focus, so unless you're circumventing the UI, * you'll probably just focus your interest here. *