Skip to content

Commit

Permalink
Merge pull request ToxicBakery#28 from ToxicBakery/issue-25
Browse files Browse the repository at this point in the history
Issue 25
  • Loading branch information
ToxicBakery committed Apr 29, 2015
2 parents b2c757e + a266fbf commit 4ca85c3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,16 @@ boolean isTag() {
def buildNumber() {
return System.getenv('TRAVIS_BUILD_NUMBER') ?: "0"
}

boolean isTravis() {
return System.getenv('TRAVIS_BUILD_NUMBER') ? true : false
}

boolean isTag() {
def tag = System.getenv('TRAVIS_TAG')
return !(tag == null || tag.isEmpty())
}

def buildNumber() {
return System.getenv('TRAVIS_BUILD_NUMBER') ?: "0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ protected void onPreTransform(View page, float position) {

if (hideOffscreenPages()) {
page.setAlpha(position <= -1f || position >= 1f ? 0f : 1f);
page.setEnabled(false);
} else {
page.setEnabled(true);
page.setAlpha(1f);
}
}
Expand Down

0 comments on commit 4ca85c3

Please sign in to comment.