Permalink
Browse files

Expose companion functions as Java static methods

  • Loading branch information...
saket committed Sep 22, 2018
1 parent 6fa1408 commit b8329fb1c1b1caeb5a7b27ab0495056afc506327
@@ -1,5 +1,3 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.versions = [
compileSdk: 28,
@@ -57,6 +57,7 @@ abstract class ItemExpandAnimator {

companion object {

@JvmStatic
fun split() = SplitExpandAnimator()
}
}
@@ -23,6 +23,7 @@ abstract class TintPainter {
/**
* See [UncoveredAreaTintPainter].
*/
@JvmStatic
@JvmOverloads
fun uncoveredArea(
@ColorInt color: Int = Color.BLACK,
@@ -34,6 +35,7 @@ abstract class TintPainter {
/**
* See [CompleteListTintPainter].
*/
@JvmStatic
@JvmOverloads
fun completeList(
@ColorInt color: Int = Color.BLACK,
@@ -42,6 +44,7 @@ abstract class TintPainter {
return CompleteListTintPainter(color, opacity)
}

@JvmStatic
fun noOp(): TintPainter {
return object : TintPainter() {
override fun onAttachRecyclerView(recyclerView: InboxRecyclerView) {}

0 comments on commit b8329fb

Please sign in to comment.