Skip to content

Commit

Permalink
master #comment Correções na exbição do feedback de validação
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcarvalho-q committed Oct 18, 2016
1 parent be57db7 commit f805a58
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 31 deletions.
Binary file added .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.android.tools.build:gradle:2.2.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
}
}

Expand Down
28 changes: 1 addition & 27 deletions formvalidator/src/main/java/com/rca/formvalidator/FormView.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,33 +216,7 @@ private static void clearColorFilter(@NonNull Drawable drawable) {
}

drawable.clearColorFilter();

if (Build.VERSION.SDK_INT == 21 || Build.VERSION.SDK_INT == 22) {

return;
}

if (drawable instanceof InsetDrawable) {

clearColorFilter(((InsetDrawable) drawable).getDrawable());

} else if (drawable instanceof DrawableWrapper) {

clearColorFilter(((DrawableWrapper) drawable).getWrappedDrawable());

} else if (drawable instanceof DrawableContainer) {

final DrawableContainer container = (DrawableContainer) drawable;
final DrawableContainer.DrawableContainerState state = (DrawableContainer.DrawableContainerState) container.getConstantState();

if (state != null) {

for (int i = 0, count = state.getChildCount(); i < count; i++) {

clearColorFilter(state.getChild(i));
}
}
}
drawable.invalidateSelf();
}

private Drawable getBackgroundDrawable() {
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Dec 28 10:00:20 PST 2015
#Tue Oct 18 11:22:13 BRST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

0 comments on commit f805a58

Please sign in to comment.