From 4e28cd96f31fce6d772c6b9e503fc526947afcd2 Mon Sep 17 00:00:00 2001 From: Alidibir Akhbulatov Date: Sun, 4 Feb 2024 00:41:35 +0300 Subject: [PATCH] Add "fun" keyword to SAM interface listeners --- .../me/aartikov/alligator/listeners/DialogShowingListener.kt | 2 +- .../me/aartikov/alligator/listeners/NavigationErrorListener.kt | 2 +- .../me/aartikov/alligator/listeners/ScreenResultListener.kt | 2 +- .../me/aartikov/alligator/listeners/ScreenSwitchingListener.kt | 2 +- .../java/me/aartikov/alligator/listeners/TransitionListener.kt | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/alligator/src/main/java/me/aartikov/alligator/listeners/DialogShowingListener.kt b/alligator/src/main/java/me/aartikov/alligator/listeners/DialogShowingListener.kt index 5700a68..dd84d6a 100644 --- a/alligator/src/main/java/me/aartikov/alligator/listeners/DialogShowingListener.kt +++ b/alligator/src/main/java/me/aartikov/alligator/listeners/DialogShowingListener.kt @@ -5,7 +5,7 @@ import me.aartikov.alligator.Screen /** * Interface for listening of dialog showing. */ -interface DialogShowingListener { +fun interface DialogShowingListener { /** * Is called when a dialog was shown. * diff --git a/alligator/src/main/java/me/aartikov/alligator/listeners/NavigationErrorListener.kt b/alligator/src/main/java/me/aartikov/alligator/listeners/NavigationErrorListener.kt index 28b0a50..82e746f 100644 --- a/alligator/src/main/java/me/aartikov/alligator/listeners/NavigationErrorListener.kt +++ b/alligator/src/main/java/me/aartikov/alligator/listeners/NavigationErrorListener.kt @@ -5,7 +5,7 @@ import me.aartikov.alligator.exceptions.NavigationException /** * Interface for navigation error handling. */ -interface NavigationErrorListener { +fun interface NavigationErrorListener { /** * Is called when an error has occurred during [Command] execution. * diff --git a/alligator/src/main/java/me/aartikov/alligator/listeners/ScreenResultListener.kt b/alligator/src/main/java/me/aartikov/alligator/listeners/ScreenResultListener.kt index e92ac1d..9532a80 100644 --- a/alligator/src/main/java/me/aartikov/alligator/listeners/ScreenResultListener.kt +++ b/alligator/src/main/java/me/aartikov/alligator/listeners/ScreenResultListener.kt @@ -6,7 +6,7 @@ import me.aartikov.alligator.ScreenResult /** * Interface for screen result handling. */ -interface ScreenResultListener { +fun interface ScreenResultListener { /** * Is called when a screen that can return a result has finished. * diff --git a/alligator/src/main/java/me/aartikov/alligator/listeners/ScreenSwitchingListener.kt b/alligator/src/main/java/me/aartikov/alligator/listeners/ScreenSwitchingListener.kt index 99df2f5..21c4040 100644 --- a/alligator/src/main/java/me/aartikov/alligator/listeners/ScreenSwitchingListener.kt +++ b/alligator/src/main/java/me/aartikov/alligator/listeners/ScreenSwitchingListener.kt @@ -5,7 +5,7 @@ import me.aartikov.alligator.Screen /** * Interface for listening of screen switching. */ -interface ScreenSwitchingListener { +fun interface ScreenSwitchingListener { /** * Is called after a screen has been switched using [ScreenSwitcher]. * diff --git a/alligator/src/main/java/me/aartikov/alligator/listeners/TransitionListener.kt b/alligator/src/main/java/me/aartikov/alligator/listeners/TransitionListener.kt index b193bc0..b5727c5 100644 --- a/alligator/src/main/java/me/aartikov/alligator/listeners/TransitionListener.kt +++ b/alligator/src/main/java/me/aartikov/alligator/listeners/TransitionListener.kt @@ -7,7 +7,7 @@ import me.aartikov.alligator.TransitionType /** * Interface for listening of screen transition. */ -interface TransitionListener { +fun interface TransitionListener { /** * Is called when an usual screen transition (not screen switching and not dialog showing) has been executed. *