Update SlidingPanel.java

setting isOpen before the if statement causes incorrect behaviour.