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:
@@ -102,7 +102,7 @@ public class SetupChooseLockPassword extends ChooseLockPassword {
|
|||||||
@Override
|
@Override
|
||||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||||
super.onViewCreated(view, savedInstanceState);
|
super.onViewCreated(view, savedInstanceState);
|
||||||
SystemBarHelper.setImeInsetView(mLayout.findViewById(R.id.suw_bottom_scroll_view));
|
SystemBarHelper.setImeInsetView(mLayout);
|
||||||
SetupWizardUtils.setImmersiveMode(getActivity());
|
SetupWizardUtils.setImmersiveMode(getActivity());
|
||||||
mLayout.setHeaderText(getActivity().getTitle());
|
mLayout.setHeaderText(getActivity().getTitle());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user