Skip to content

Commit

Permalink
Bump to 1.1.1, Add non static isShowBefore() method
Browse files Browse the repository at this point in the history
  • Loading branch information
faruktoptas committed Oct 12, 2018
1 parent 7c263fb commit 7bc89e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ buildscript {
ext.build_tools_version = '27.0.3'
ext.min_sdk_version = 14
ext.target_sdk_version = 27
ext.version_name = '1.1.0'
ext.version_name = '1.1.1'


ext.support_version = '27.1.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,9 @@ class FancyShowCaseView : FrameLayout, ViewTreeObserver.OnGlobalLayoutListener {
}
}

fun isShownBefore() = if (id != null) isShownBefore(context, id!!) else false


/**
* Removes FancyShowCaseView view from activity root view
*/
Expand Down Expand Up @@ -926,6 +929,7 @@ class FancyShowCaseView : FrameLayout, ViewTreeObserver.OnGlobalLayoutListener {
.apply()


@JvmStatic
fun isShownBefore(context: Context, id: String) = preferences(context).getBoolean(id, false)

private fun preferences(context: Context) = context
Expand Down

0 comments on commit 7bc89e8

Please sign in to comment.