Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit aa26f24

Browse files
author
Mateusz Maziec
committed
clean up
1 parent beae4db commit aa26f24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scanner/src/main/java/com/bobekos/bobek/scanner/BarcodeView.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class BarcodeView : FrameLayout {
5757
addView(cameraView)
5858
}
5959

60+
//region public
6061
fun getObservable(): Observable<Barcode> {
6162
return Observable.fromPublisher<SurfaceHolder> {
6263
cameraView.holder.addCallback(object : SurfaceHolder.Callback {
@@ -106,7 +107,9 @@ class BarcodeView : FrameLayout {
106107

107108
return this
108109
}
110+
//endregion
109111

112+
//region private
110113
private fun startOverlay() {
111114
addView(drawOverlay as View, FrameLayout.LayoutParams(width, height))
112115

@@ -137,4 +140,5 @@ class BarcodeView : FrameLayout {
137140
private fun translateY(y: Int): Int {
138141
return (y * yScaleFactor).toInt()
139142
}
143+
//endregion
140144
}

0 commit comments

Comments
 (0)