Browse Source

Remove useless todo, handle request type event

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
Álvaro Brey 2 years ago
parent
commit
fc9139f4e2

+ 1 - 0
app/src/main/java/com/nextcloud/client/documentscan/DocumentScanActivity.kt

@@ -148,6 +148,7 @@ class DocumentScanActivity : ToolbarActivity(), Injectable {
                     updateButtonsEnabled(false)
                     if (state.shouldRequestExportType) {
                         showExportDialog()
+                        viewModel.onRequestTypeHandled()
                     }
                 }
             }

+ 0 - 2
app/src/main/java/com/nextcloud/client/documentscan/DocumentScanViewModel.kt

@@ -95,8 +95,6 @@ class DocumentScanViewModel @Inject constructor(
                 val pageList = state.pageList.toMutableList()
                 pageList.add(newPath)
                 _uiState.postValue(UIState.NormalState(pageList))
-            } else {
-                // TODO
             }
         }