diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2015-04-14 15:17:07 -0700 |
---|---|---|
committer | Deepanshu Gupta <deepanshu@google.com> | 2015-04-15 18:20:55 -0700 |
commit | 49ce36e1754243eedc124b4f7e68af1b458c821c (patch) | |
tree | 8ba5c2c1a3a02c2c4c24730f2f642b98f0817b21 /tools/layoutlib/bridge/src/com | |
parent | 9ca97747260b9906fc3a159ce3930109022cf2dd (diff) | |
download | frameworks_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.java | 5 |
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) { |