Update app/src/main/java/com/owncloud/android/ui/activity/SyncedFoldersActivity.kt

Co-authored-by: Tom <70907959+ZetaTom@users.noreply.github.com>
Signed-off-by: Alper Öztürk <67455295+alperozturk96@users.noreply.github.com>
This commit is contained in:
Alper Öztürk 2023-12-18 11:45:25 +01:00 committed by Alper Öztürk (Rebase PR Action)
parent b980f552c8
commit ea013b0cb3

View file

@ -631,10 +631,10 @@ class SyncedFoldersActivity :
if (requestCode == SyncedFolderPreferencesDialogFragment.REQUEST_CODE__SELECT_REMOTE_FOLDER &&
resultCode == RESULT_OK && syncedFolderPreferencesDialogFragment != null
) {
val chosenFolder: OCFile = FolderPickerActivity.EXTRA_FOLDER?.let {
data!!.getParcelableArgument(it, OCFile::class.java)
} ?: return
syncedFolderPreferencesDialogFragment!!.setRemoteFolderSummary(chosenFolder.remotePath)
val chosenFolder: OCFile? = FolderPickerActivity.EXTRA_FOLDER?.let {
data?.getParcelableArgument(it, OCFile::class.java)
}
syncedFolderPreferencesDialogFragment?.setRemoteFolderSummary(chosenFolder?.remotePath)
} else if (
requestCode == SyncedFolderPreferencesDialogFragment.REQUEST_CODE__SELECT_LOCAL_FOLDER &&
resultCode == RESULT_OK && syncedFolderPreferencesDialogFragment != null