Merge "Fix: Cannot control ime_switcher and menu after resetting." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a423e2535b
@@ -282,6 +282,12 @@ public class NavigationBarInflaterView extends FrameLayout implements TunerServi
|
|||||||
final int indexOfKey = mButtonDispatchers.indexOfKey(v.getId());
|
final int indexOfKey = mButtonDispatchers.indexOfKey(v.getId());
|
||||||
if (indexOfKey >= 0) {
|
if (indexOfKey >= 0) {
|
||||||
mButtonDispatchers.valueAt(indexOfKey).addView(v);
|
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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user