fix menuInflater maybe null when changing screen direction