diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ab003b9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: android + +jdk: + - oraclejdk8 + +install: +# Let's use the new command 'sdkmanager' to install Android SDK components +- yes | sdkmanager "build-tools;28.0.2" +- yes | sdkmanager "platform-tools" +- yes | sdkmanager "tools" +- yes | sdkmanager "platforms;android-28" +- yes | sdkmanager "system-images;android-28;default;x86" + +script: +- ./gradlew clean build -w diff --git a/README.md b/README.md index 3248e79..acc630e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Common Library +[![Build Status](https://travis-ci.org/crisolutions/commonlibrary.svg?branch=master)](https://travis-ci.org/crisolutions/commonlibrary) Library of the Common module from CRI Solutions. @@ -45,4 +46,4 @@ android { to the module's gradle file. ## Releasing -The [RELEASING.md](./RELEASING.md) file includes information on the releasing process for the library. \ No newline at end of file +The [RELEASING.md](./RELEASING.md) file includes information on the releasing process for the library. diff --git a/commonlib/src/main/java/com/crisolutions/commonlib/ActivityLifecycleTask.java b/commonlib/src/main/java/com/crisolutions/commonlib/ActivityLifecycleTask.java index e2e7a1f..a9dde84 100644 --- a/commonlib/src/main/java/com/crisolutions/commonlib/ActivityLifecycleTask.java +++ b/commonlib/src/main/java/com/crisolutions/commonlib/ActivityLifecycleTask.java @@ -28,7 +28,7 @@ public void onStop(Activity activity) { } - public void onDestroy(AppCompatActivity activity) { + public void onDestroy(Activity activity) { } } diff --git a/commonlib/src/main/java/com/crisolutions/commonlib/view/ScrollAwareFABBehavior.java b/commonlib/src/main/java/com/crisolutions/commonlib/view/ScrollAwareFABBehavior.java index 666c1b2..bdfbaa7 100644 --- a/commonlib/src/main/java/com/crisolutions/commonlib/view/ScrollAwareFABBehavior.java +++ b/commonlib/src/main/java/com/crisolutions/commonlib/view/ScrollAwareFABBehavior.java @@ -43,7 +43,7 @@ public void onNestedScroll( @Override public void onHidden(FloatingActionButton fab) { super.onHidden(fab); - fab.setVisibility(View.INVISIBLE); + ((View) fab).setVisibility(View.INVISIBLE); } }); } else if (dyConsumed < 0 && child.getVisibility() != View.VISIBLE) {