Drop incompatiable java annotations
Both Nullable and NonNull are java annotations and doesn't work on Kotlin. Drop them to make lint happy. Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -90,7 +90,7 @@ class MainActivity : BaseActivity() {
|
|||||||
companion object {
|
companion object {
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
private fun matchDestination(
|
private fun matchDestination(
|
||||||
@NonNull destination: NavDestination?,
|
destination: NavDestination?,
|
||||||
@IdRes destId: Int
|
@IdRes destId: Int
|
||||||
): Boolean {
|
): Boolean {
|
||||||
var currentDestination = destination
|
var currentDestination = destination
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class HeaderView : RelativeLayout {
|
|||||||
|
|
||||||
@JvmOverloads
|
@JvmOverloads
|
||||||
@ModelProp
|
@ModelProp
|
||||||
fun browseUrl(@Nullable browseUrl: String? = String()) {
|
fun browseUrl(browseUrl: String? = String()) {
|
||||||
if (browseUrl.isNullOrEmpty())
|
if (browseUrl.isNullOrEmpty())
|
||||||
B.imgAction.visibility = INVISIBLE
|
B.imgAction.visibility = INVISIBLE
|
||||||
}
|
}
|
||||||
@@ -81,4 +81,4 @@ class HeaderView : RelativeLayout {
|
|||||||
fun clear() {
|
fun clear() {
|
||||||
B.imgAction.visibility = VISIBLE
|
B.imgAction.visibility = VISIBLE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user