Use the layout for calculating IME inset.

We should calculate the offset for the entire layout rather than
just the scroll view. This allows us to not special case the navigation
bar inside SystemBarHelper.setImeInsetView, as the logic before always
assumed the scroll view was passed into setImeInsetView.

bug:27063940
Change-Id: If3f09e1e07ea584097a050b987c1ab3985b4991c
This commit is contained in:
Udam Saini
2016-02-22 14:51:44 -08:00
parent d553f4f9a9
commit 2b7d99782f

View File

@@ -102,7 +102,7 @@ public class SetupChooseLockPassword extends ChooseLockPassword {
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
SystemBarHelper.setImeInsetView(mLayout.findViewById(R.id.suw_bottom_scroll_view));
SystemBarHelper.setImeInsetView(mLayout);
SetupWizardUtils.setImmersiveMode(getActivity());
mLayout.setHeaderText(getActivity().getTitle());
}