Fix crash on KeyboardLayoutDialogFragment

Since view id changed after fragment migration,
we correct view id.

Change-Id: If81ca06423ac62fd9f6a118be0b5fe3c93356142
Fixes: 117559309
Test: robotest
This commit is contained in:
tmfang
2018-10-11 18:26:37 +08:00
parent 695638ce35
commit a75eea1b01

View File

@@ -215,7 +215,7 @@ public class KeyboardLayoutDialogFragment extends InstrumentedDialogFragment
private void updateSwitchHintVisibility() {
AlertDialog dialog = (AlertDialog)getDialog();
if (dialog != null) {
View customPanel = dialog.findViewById(com.android.internal.R.id.customPanel);
View customPanel = dialog.findViewById(R.id.customPanel);
customPanel.setVisibility(mAdapter.getCount() > 1 ? View.VISIBLE : View.GONE);
}
}