summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/AppsCustomizeTabHost.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2012-04-18 14:23:14 -0700
committerMichael Jurka <mikejurka@google.com>2012-04-25 16:24:03 -0700
commit8b805b17158886035b38261eb611d8641701ae43 (patch)
tree4244eabd560747196743f85b8c49f1c0202ccf1a /src/com/android/launcher2/AppsCustomizeTabHost.java
parent58039d634cb36da561501ccfafc266e1d83d0b4f (diff)
downloadandroid_packages_apps_Trebuchet-8b805b17158886035b38261eb611d8641701ae43.tar.gz
android_packages_apps_Trebuchet-8b805b17158886035b38261eb611d8641701ae43.tar.bz2
android_packages_apps_Trebuchet-8b805b17158886035b38261eb611d8641701ae43.zip
Remove use of private APIs
Change-Id: I3e28763075f8e92391796dc009214c9fa8f50008
Diffstat (limited to 'src/com/android/launcher2/AppsCustomizeTabHost.java')
-rw-r--r--src/com/android/launcher2/AppsCustomizeTabHost.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher2/AppsCustomizeTabHost.java b/src/com/android/launcher2/AppsCustomizeTabHost.java
index 21842da3b..34b7c0923 100644
--- a/src/com/android/launcher2/AppsCustomizeTabHost.java
+++ b/src/com/android/launcher2/AppsCustomizeTabHost.java
@@ -102,7 +102,7 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona
setup();
final ViewGroup tabsContainer = (ViewGroup) findViewById(R.id.tabs_container);
- final TabWidget tabs = (TabWidget) findViewById(com.android.internal.R.id.tabs);
+ final TabWidget tabs = getTabWidget();
final AppsCustomizePagedView appsCustomizePane = (AppsCustomizePagedView)
findViewById(R.id.apps_customize_pane_content);
mTabs = tabs;
@@ -123,12 +123,12 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona
// Create the tabs
TextView tabView;
String label;
- label = mContext.getString(R.string.all_apps_button_label);
+ label = getContext().getString(R.string.all_apps_button_label);
tabView = (TextView) mLayoutInflater.inflate(R.layout.tab_widget_indicator, tabs, false);
tabView.setText(label);
tabView.setContentDescription(label);
addTab(newTabSpec(APPS_TAB_TAG).setIndicator(tabView).setContent(contentFactory));
- label = mContext.getString(R.string.widgets_tab_label);
+ label = getContext().getString(R.string.widgets_tab_label);
tabView = (TextView) mLayoutInflater.inflate(R.layout.tab_widget_indicator, tabs, false);
tabView.setText(label);
tabView.setContentDescription(label);