Skip to content

Commit 6f0e890

Browse files
committed
reverse torch drawable
1 parent f10b9cb commit 6f0e890

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
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.39.7]
5+
6+
### Fixed
7+
- Reversed camera torch drawable
8+
49
## [0.39.6]
510

611
### Added

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ open class SelfScanningFragment : Fragment() {
161161
private fun updateTorchIcon() {
162162
val menuItem = optionsMenu?.findItem(R.id.snabble_action_torch)
163163
if (selfScanningView.isTorchEnabled) {
164-
menuItem?.icon = ResourcesCompat.getDrawable(resources, R.drawable.snabble_ic_flashlight_off, null)
165-
} else {
166164
menuItem?.icon = ResourcesCompat.getDrawable(resources, R.drawable.snabble_ic_flashlight_on, null)
165+
} else {
166+
menuItem?.icon = ResourcesCompat.getDrawable(resources, R.drawable.snabble_ic_flashlight_off, null)
167167
}
168168
}
169169

ui-integration/src/main/res/menu/snabble_menu_scanner.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto">
44
<item
55
android:id="@+id/snabble_action_torch"
6-
android:icon="@drawable/snabble_ic_flashlight_on"
6+
android:icon="@drawable/snabble_ic_flashlight_off"
77
android:title="@string/Snabble.Scanner.torchButton"
88
app:iconTint="?attr/colorOnSurface"
99
app:showAsAction="always"/>

0 commit comments

Comments
 (0)