Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Preserve tab behavior onOrientationChange (issue #365) #549
This commit fixes tab behavior bug onOrientationChange when Activity handles orientation changes (android:configChanges="orientation").
Probably, this is not the proper implementation because it re-creates tab layout but for our case, it solves the problem.
Okay, I understand that the fix may have side effects and cannot be merged. The bug however is valid and causes tabs to become unresponsive when orientation changes on Android 2.x (haven't tested 3.x).
The native ActionBar tabs on Android 4.x handles the rotation just fine when android:configChanges="orientation|keyboardHidden" is set on the activity.
Edit: Ignore this comment, I found Jake's reply on the bug here #279