summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge/src/com
diff options
context:
space:
mode:
authorDeepanshu Gupta <deepanshu@google.com>2015-04-14 15:17:07 -0700
committerDeepanshu Gupta <deepanshu@google.com>2015-04-15 18:20:55 -0700
commit49ce36e1754243eedc124b4f7e68af1b458c821c (patch)
tree8ba5c2c1a3a02c2c4c24730f2f642b98f0817b21 /tools/layoutlib/bridge/src/com
parent9ca97747260b9906fc3a159ce3930109022cf2dd (diff)
downloadframeworks_base-49ce36e1754243eedc124b4f7e68af1b458c821c.zip
frameworks_base-49ce36e1754243eedc124b4f7e68af1b458c821c.tar.gz
frameworks_base-49ce36e1754243eedc124b4f7e68af1b458c821c.tar.bz2
Remove implementation of deprecated method.
BridgeResources.getDrawable(int) is not needed anymore, since the super method is deprecated and it calls the alternative getDrawable(int, Theme), which we override. Change-Id: I00c0bfaef6c4167a787bb74990b91cebb951c847
Diffstat (limited to 'tools/layoutlib/bridge/src/com')
-rw-r--r--tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
index fc4f9f1..ff67f65 100644
--- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
+++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java
@@ -1406,8 +1406,9 @@ public class RenderSessionImpl extends RenderAction<SessionParams> {
if (count == 0) {
// Create a dummy child to get a single tab
- TabSpec spec = tabHost.newTabSpec("tag").setIndicator("Tab Label",
- tabHost.getResources().getDrawable(android.R.drawable.ic_menu_info_details))
+ TabSpec spec = tabHost.newTabSpec("tag")
+ .setIndicator("Tab Label", tabHost.getResources()
+ .getDrawable(android.R.drawable.ic_menu_info_details, null))
.setContent(new TabHost.TabContentFactory() {
@Override
public View createTabContent(String tag) {