Skip to content

Commit fec83d1

Browse files
committed
fix SelfScanningFragment black screen
1 parent 71f0150 commit fec83d1

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.40.1]
5+
6+
### Fixed
7+
- Fixed SelfScanningFragment being out of sync with SelfScanningView
8+
49
## [0.40.0]
510

611
### Breaking Changes

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ allprojects {
3131
}
3232

3333
project.ext {
34-
sdkVersion='0.40.0'
34+
sdkVersion='0.40.1'
3535
versionCode=1
3636

3737
compileSdkVersion=30

ui-integration/src/main/java/io/snabble/sdk/ui/integration/SelfScanningFragment.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,13 @@ open class SelfScanningFragment : Fragment() {
4343
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
4444
super.onViewCreated(view, savedInstanceState)
4545
rootView = view as ViewGroup
46+
_selfScanningView = null
4647
permissionContainer = rootView.findViewById(R.id.permission_denied_container)
4748
askForPermission = rootView.findViewById(R.id.open_settings)
49+
50+
if (isPermissionGranted) {
51+
createSelfScanningView()
52+
}
4853
}
4954

5055
override fun onStart() {

0 commit comments

Comments
 (0)