Enhance rotation support in fragment sample.