Merge "Fix: Cannot control ime_switcher and menu after resetting." into nyc-dev

am: a423e2535b

* commit 'a423e2535b2d79849465db1a24aefa6779cc695b':
  Fix: Cannot control ime_switcher and menu after resetting.

Change-Id: I5d50dd2cb84687540a556922ad4000815c8e3073
This commit is contained in:
Keisuke Kuroyanagi
2016-05-06 20:05:34 +00:00
committed by android-build-merger

View File

@@ -282,6 +282,12 @@ public class NavigationBarInflaterView extends FrameLayout implements TunerServi
final int indexOfKey = mButtonDispatchers.indexOfKey(v.getId());
if (indexOfKey >= 0) {
mButtonDispatchers.valueAt(indexOfKey).addView(v);
} else if (v instanceof ViewGroup) {
final ViewGroup viewGroup = (ViewGroup)v;
final int N = viewGroup.getChildCount();
for (int i = 0; i < N; i++) {
addToDispatchers(viewGroup.getChildAt(i));
}
}
}
}