Skip to content

Commit

Permalink
fix: remove dependency on TintManager
Browse files Browse the repository at this point in the history
  • Loading branch information
RowlandOti committed Jul 22, 2016
1 parent 17413a4 commit 0e66fa7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
1 change: 0 additions & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

6 changes: 3 additions & 3 deletions design/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ android {

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:design:23.4.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import android.support.v4.view.ViewPager;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import android.support.v7.widget.AppCompatTextView;
import android.support.v7.widget.TintManager;
import android.text.TextUtils;
import android.text.TextUtils.TruncateAt;
import android.util.AttributeSet;
Expand Down Expand Up @@ -831,7 +830,8 @@ public TabView(Context context, SlidingTabStripLayout.Tab tab) {
super(context);
this.mTab = tab;
if (SlidingTabStripLayout.this.mTabBackgroundResId != 0) {
this.setBackgroundDrawable(TintManager.getDrawable(context, SlidingTabStripLayout.this.mTabBackgroundResId));
//this.setBackgroundDrawable(TintManager.getDrawable(context, SlidingTabStripLayout.this.mTabBackgroundResId));
this.setBackgroundResource(SlidingTabStripLayout.this.mTabBackgroundResId);
}

ViewCompat.setPaddingRelative(this, SlidingTabStripLayout.this.mTabPaddingStart, SlidingTabStripLayout.this.mTabPaddingTop, SlidingTabStripLayout.this.mTabPaddingEnd, SlidingTabStripLayout.this.mTabPaddingBottom);
Expand Down Expand Up @@ -1057,7 +1057,8 @@ public SlidingTabStripLayout.Tab setIcon(Drawable icon) {
}

public SlidingTabStripLayout.Tab setIcon(int resId) {
return this.setIcon(TintManager.getDrawable(this.mParent.getContext(), resId));
//return this.setIcon(TintManager.getDrawable(this.mParent.getContext(), resId));
return null;
}

public SlidingTabStripLayout.Tab setText(CharSequence text) {
Expand Down
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:appcompat-v7:23.4.0'
compile project(path: ':design')
}

0 comments on commit 0e66fa7

Please sign in to comment.