Merge "Merge "Remove SystemUIFactory.getHomeLayoutId()" into nyc-mr1-dev am: 84c074adb2" into nyc-mr1-dev-plus-aosp
This commit is contained in:
committed by
Android (Google) Code Review
commit
64a2480f6c
@@ -119,13 +119,6 @@ public class SystemUIFactory {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return The id for the home button layout.
|
|
||||||
*/
|
|
||||||
public int getHomeLayoutId() {
|
|
||||||
return R.layout.home;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AssistManager createAssistManager(BaseStatusBar bar, Context context) {
|
public AssistManager createAssistManager(BaseStatusBar bar, Context context) {
|
||||||
return new AssistManager(bar, context);
|
return new AssistManager(bar, context);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ public class NavigationBarInflaterView extends FrameLayout implements TunerServi
|
|||||||
String button = extractButton(buttonSpec);
|
String button = extractButton(buttonSpec);
|
||||||
View v = null;
|
View v = null;
|
||||||
if (HOME.equals(button)) {
|
if (HOME.equals(button)) {
|
||||||
v = inflater.inflate(SystemUIFactory.getInstance().getHomeLayoutId(), parent, false);
|
v = inflater.inflate(R.layout.home, parent, false);
|
||||||
if (landscape && isSw600Dp()) {
|
if (landscape && isSw600Dp()) {
|
||||||
setupLandButton(v);
|
setupLandButton(v);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user