Merge "Remove SystemUIFactory.getHomeLayoutId()" into nyc-mr1-dev

This commit is contained in:
Annie Chin
2016-06-02 22:10:00 +00:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 8 deletions

View File

@@ -119,13 +119,6 @@ public class SystemUIFactory {
return null;
}
/**
* @return The id for the home button layout.
*/
public int getHomeLayoutId() {
return R.layout.home;
}
public AssistManager createAssistManager(BaseStatusBar bar, Context context) {
return new AssistManager(bar, context);
}

View File

@@ -221,7 +221,7 @@ public class NavigationBarInflaterView extends FrameLayout implements TunerServi
String button = extractButton(buttonSpec);
View v = null;
if (HOME.equals(button)) {
v = inflater.inflate(SystemUIFactory.getInstance().getHomeLayoutId(), parent, false);
v = inflater.inflate(R.layout.home, parent, false);
if (landscape && isSw600Dp()) {
setupLandButton(v);
}