Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
added view pager indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
borisf committed Nov 15, 2016
1 parent 3462132 commit d0c6ec6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class JavaDependenciesInspector {
private boolean hasDeprecatedHttp;
private boolean hasActionBarSherlock;
private boolean hasPullToRefresh;
private boolean hasViewPagerIndicator;

public JavaDependenciesInspector(List<String> allClasses) {
this.allClasses = allClasses;
Expand Down Expand Up @@ -92,6 +93,11 @@ public List<String> getInspections() {
result.add("\n* PullToRefresh is deprecated");
}

if (hasViewPagerIndicator) {
result.add("\n* ViewPagerIndicator is deprecated - use support library");
}


return result;
}

Expand Down Expand Up @@ -132,6 +138,8 @@ private void updateLogic(String cName) {
hasActionBarSherlock = true;
} else if (cName.contains("chrisbanes.pulltorefresh") && !hasPullToRefresh) {
hasPullToRefresh = true;
} else if (cName.contains("com.viewpagerindicator") && !hasPullToRefresh) {
hasViewPagerIndicator = true;
}
}
}

0 comments on commit d0c6ec6

Please sign in to comment.