mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 15:27:55 -04:00
#2418 added JVMOverloads in constructor
This commit is contained in:
parent
8f402ea4d5
commit
c618310c9b
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user