Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #456 from SimonVT/dev

Wait with attaching TabListener to native tabs
  • Loading branch information...
commit 2a5c7e63e6974aea5a9c34927d37d8d81f817a56 2 parents 38cc395 + faa4b08
@JakeWharton JakeWharton authored
View
2  library/src/com/actionbarsherlock/internal/app/ActionBarWrapper.java
@@ -217,7 +217,6 @@ public int getDisplayOptions() {
public TabWrapper(android.app.ActionBar.Tab nativeTab) {
mNativeTab = nativeTab;
mNativeTab.setTag(this);
- mNativeTab.setTabListener(this);
}
@Override
@@ -289,6 +288,7 @@ public Object getTag() {
@Override
public Tab setTabListener(TabListener listener) {
+ mNativeTab.setTabListener(listener != null ? this : null);
mListener = listener;
return this;
}
Please sign in to comment.
Something went wrong with that request. Please try again.