Skip to content

Commit 3b580aa

Browse files
author
izaak
committed
Add portrait photo mode and use in photo mode plugin
1 parent f7e4d8f commit 3b580aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/co/stonephone/stonecamera/plugins/IPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import kotlinx.coroutines.CompletableDeferred
1212

1313
// PluginUseCase Enum ("photo", "analysis", "video")
1414
enum class PluginUseCase {
15-
PHOTO, ANALYSIS, VIDEO
15+
PHOTO, PORTRAIT, ANALYSIS, VIDEO
1616
}
1717

1818
// Plugin interface definition

app/src/main/java/co/stonephone/stonecamera/plugins/PhotoMode.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class PhotoModePlugin : IPlugin {
3131

3232
// Should Analysis be added by QRScanner instead? Probably doesn't matter for now
3333
override val modeUseCases: List<PluginUseCase>
34-
get() = listOf(PluginUseCase.PHOTO, PluginUseCase.ANALYSIS, PluginUseCase.VIDEO)
34+
get() = listOf(PluginUseCase.PHOTO, PluginUseCase.PORTRAIT, PluginUseCase.ANALYSIS, PluginUseCase.VIDEO)
3535

3636
override val modeLabel
3737
get() = "photo"

0 commit comments

Comments
 (0)