[IMP] screen rotation state handled

Respected Sir,
                    I have solved the issue of screen rotation in this branch.