Skip to content

Commit b8329fb

Browse files
author
Saket Narayan
committed
Expose companion functions as Java static methods
1 parent 6fa1408 commit b8329fb

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
31
buildscript {
42
ext.versions = [
53
compileSdk: 28,

inboxrecyclerview/src/main/java/me/saket/inboxrecyclerview/animation/ItemExpandAnimator.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ abstract class ItemExpandAnimator {
5757

5858
companion object {
5959

60+
@JvmStatic
6061
fun split() = SplitExpandAnimator()
6162
}
6263
}

inboxrecyclerview/src/main/java/me/saket/inboxrecyclerview/dimming/TintPainter.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ abstract class TintPainter {
2323
/**
2424
* See [UncoveredAreaTintPainter].
2525
*/
26+
@JvmStatic
2627
@JvmOverloads
2728
fun uncoveredArea(
2829
@ColorInt color: Int = Color.BLACK,
@@ -34,6 +35,7 @@ abstract class TintPainter {
3435
/**
3536
* See [CompleteListTintPainter].
3637
*/
38+
@JvmStatic
3739
@JvmOverloads
3840
fun completeList(
3941
@ColorInt color: Int = Color.BLACK,
@@ -42,6 +44,7 @@ abstract class TintPainter {
4244
return CompleteListTintPainter(color, opacity)
4345
}
4446

47+
@JvmStatic
4548
fun noOp(): TintPainter {
4649
return object : TintPainter() {
4750
override fun onAttachRecyclerView(recyclerView: InboxRecyclerView) {}

0 commit comments

Comments
 (0)