Introduce ButtonInterface and getHomeId()
Bug: 28957690
Change-Id: Ief61d63b5358d07a6feb222a379a7e8cdcd712b2
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
index 2bee816..b431820 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarInflaterView.java
@@ -26,7 +26,9 @@
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.Space;
+
import com.android.systemui.R;
+import com.android.systemui.SystemUIFactory;
import com.android.systemui.statusbar.policy.KeyButtonView;
import com.android.systemui.tuner.TunerService;
@@ -219,7 +221,7 @@
String button = extractButton(buttonSpec);
View v = null;
if (HOME.equals(button)) {
- v = inflater.inflate(R.layout.home, parent, false);
+ v = inflater.inflate(SystemUIFactory.getInstance().getHomeLayoutId(), parent, false);
if (landscape && isSw600Dp()) {
setupLandButton(v);
}