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
This commit is contained in:
Deepanshu Gupta
2015-04-14 15:17:07 -07:00
parent 9ca9774726
commit 49ce36e175
2 changed files with 3 additions and 7 deletions

View File

@@ -153,11 +153,6 @@ public final class BridgeResources extends Resources {
return null;
}
@Override
public Drawable getDrawable(int id) throws NotFoundException {
return getDrawable(id, null);
}
@Override
public Drawable getDrawable(int id, Theme theme) {
Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag);

View File

@@ -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) {