Conversation
features/backup/src/main/java/ir/mehdiyari/krypt/backup/DataComponents.kt
Outdated
Show resolved
Hide resolved
| val context = LocalContext.current | ||
|
|
||
| var selectedDirectory: DocumentFile? by remember { mutableStateOf(null) } | ||
| val launcher = rememberLauncherForActivityResult( |
There was a problem hiding this comment.
Would you please rename this variable to something more meaningful based on the job of the variable?
| _backupViewState.emit(BackupViewState.Started) | ||
| try { | ||
| if (backupRepository.backupAll()) { | ||
| if (backupRepository.backupAll(uri)) { |
There was a problem hiding this comment.
Please use uri to path inside view model, if we do this, there is no need to depend the data layer to the android related classes.
|
Hey @am-ghaseminia, Please also test the whole flow with different scenarios like changing the state of the app to foreground and background, screen orientation, etc. |
|
I tested the flow and I found this issue.
|
- Passing path instead of Uri
@mehdiyari jan, you are right about the first one, but about the second one, maybe user wants to have backup in different folders. did you consider this too? |
|
Hey @am-ghaseminia, any update about this PR? |
Description and Impact
Please include a summary of the changes and the related issue. Please also have relevant motivation and context.
Type of change
Result