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:
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user