-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from SuddenH4X/release/2.2.1
Release/2.2.1
- Loading branch information
Showing
10 changed files
with
69 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
library/src/main/java/com/suddenh4x/ratingdialog/buttons/RateButtons.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
package com.suddenh4x.ratingdialog.buttons | ||
|
||
import androidx.annotation.StringRes | ||
import java.io.Serializable | ||
|
||
internal class RateButton(@StringRes var textId: Int, var rateDialogClickListener: RateDialogClickListener?) | ||
internal class RateButton( | ||
@StringRes var textId: Int, | ||
var rateDialogClickListener: RateDialogClickListener? | ||
) : Serializable | ||
|
||
internal class ConfirmButton( | ||
@StringRes var textId: Int, | ||
var confirmButtonClickListener: ConfirmButtonClickListener? | ||
) | ||
) : Serializable | ||
|
||
internal class CustomFeedbackButton( | ||
@StringRes var textId: Int, | ||
var customFeedbackButtonClickListener: CustomFeedbackButtonClickListener? | ||
) | ||
) : Serializable |
8 changes: 5 additions & 3 deletions
8
library/src/main/java/com/suddenh4x/ratingdialog/buttons/RateClickListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
package com.suddenh4x.ratingdialog.buttons | ||
|
||
fun interface RateDialogClickListener { | ||
import java.io.Serializable | ||
|
||
fun interface RateDialogClickListener : Serializable { | ||
fun onClick() | ||
} | ||
|
||
fun interface ConfirmButtonClickListener { | ||
fun interface ConfirmButtonClickListener : Serializable { | ||
fun onClick(userRating: Float) | ||
} | ||
|
||
fun interface CustomFeedbackButtonClickListener { | ||
fun interface CustomFeedbackButtonClickListener : Serializable { | ||
fun onClick(userFeedbackText: String) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
library/src/main/java/com/suddenh4x/ratingdialog/preferences/MailSettings.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
package com.suddenh4x.ratingdialog.preferences | ||
|
||
import java.io.Serializable | ||
|
||
data class MailSettings( | ||
val mailAddress: String, | ||
val subject: String, | ||
val text: String? = null, | ||
val errorToastMessage: String? = null | ||
) | ||
) : Serializable |
4 changes: 3 additions & 1 deletion
4
library/src/main/java/com/suddenh4x/ratingdialog/preferences/RatingThreshold.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters