UPSC Prelims 2018 Indian Polity

Consider the following statements:
1. The Speaker of the Legislative Assembly shall vacate his/her office if he/she ceases to be a member of the Assembly.
2. Whenever the Legislative Assembly is dissolved, the Speaker shall vacate his/her immediately.

Which of the statements given above is/are correct?