Fix NPE when calling setState() before onLayoutChild()

Fixed NPE when setState(int) is called before the layout process
was not done(before onLayoutChild() call) for the view that holds
the BottomSheetsBehavior as a CoordinatorLayout.Behavior.

Change-Id: Ic25c6df846920cb2407e9b3398bbf30a7ce29bfd
Signed-off-by: Taeho Kim <jyte82@gmail.com>
1 file changed