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.
Tested on Android 2.3.4 and Android 4.0.4.
fixes tab functionality problem onOrientationChange
Jake Wharton » ActionBarSherlock #27 SUCCESS
This pull request looks good
I've tested these changes and they indeed solve the problem with tab rotation when the Activity is configured using android:configChanges="orientation|keyboardHidden" in the manifest.
Tabs aren't the only thing affected by runtime changes, which is why this won't be merged. That, and handling runtime changes is horrible.
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