mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-10 16:02:05 -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
|
import kotlin.math.min
|
||||||
|
|
||||||
@SuppressLint("ViewConstructor")
|
@SuppressLint("ViewConstructor")
|
||||||
class ToolbarScrollingKiwixWebView(
|
class ToolbarScrollingKiwixWebView @JvmOverloads constructor(
|
||||||
context: Context,
|
context: Context,
|
||||||
callback: WebViewCallback,
|
callback: WebViewCallback,
|
||||||
attrs: AttributeSet,
|
attrs: AttributeSet,
|
||||||
@ -39,7 +39,7 @@ class ToolbarScrollingKiwixWebView(
|
|||||||
private val toolbarView: View,
|
private val toolbarView: View,
|
||||||
private val bottomBarView: View,
|
private val bottomBarView: View,
|
||||||
sharedPreferenceUtil: SharedPreferenceUtil,
|
sharedPreferenceUtil: SharedPreferenceUtil,
|
||||||
private val parentNavigationBar: View?
|
private val parentNavigationBar: View? = null
|
||||||
) : KiwixWebView(
|
) : KiwixWebView(
|
||||||
context,
|
context,
|
||||||
callback,
|
callback,
|
||||||
@ -53,21 +53,6 @@ class ToolbarScrollingKiwixWebView(
|
|||||||
|
|
||||||
private var startY = 0f
|
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 {
|
init {
|
||||||
fixInitalScrollingIssue()
|
fixInitalScrollingIssue()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user