#2418 added JVMOverloads in constructor

This commit is contained in:
gouri-panda 2020-11-02 15:39:09 +05:30
parent 8f402ea4d5
commit c618310c9b

View File

@ -29,7 +29,7 @@ import kotlin.math.max
import kotlin.math.min
@SuppressLint("ViewConstructor")
class ToolbarScrollingKiwixWebView(
class ToolbarScrollingKiwixWebView @JvmOverloads constructor(
context: Context,
callback: WebViewCallback,
attrs: AttributeSet,
@ -39,7 +39,7 @@ class ToolbarScrollingKiwixWebView(
private val toolbarView: View,
private val bottomBarView: View,
sharedPreferenceUtil: SharedPreferenceUtil,
private val parentNavigationBar: View?
private val parentNavigationBar: View? = null
) : KiwixWebView(
context,
callback,
@ -53,21 +53,6 @@ class ToolbarScrollingKiwixWebView(
private var startY = 0f
constructor(
context: Context,
callback: WebViewCallback,
attrs: AttributeSet,
nonVideoView: ViewGroup,
videoView: ViewGroup,
webViewClient: CoreWebViewClient,
toolbarView: View,
bottomBarView: View,
sharedPreferenceUtil: SharedPreferenceUtil
) : this(
context, callback, attrs, nonVideoView, videoView, webViewClient, toolbarView,
bottomBarView, sharedPreferenceUtil, null
)
init {
fixInitalScrollingIssue()
}