Fix landscape view induced MainActivity leak.