Skip to content

Commit

Permalink
update code for displaying photo images
Browse files Browse the repository at this point in the history
  • Loading branch information
aderan committed Sep 4, 2023
1 parent 3d725c1 commit 2c8c1b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/io/agora/flat/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ class Constants {
const val DEFAULT_CALLING_CODE = "+86"

const val UPLOAD_TAG_CLOUD = "cloud"

const val UPLOAD_TAG_TAKE_PHOTO = "take_photo"
}

object URL {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class ClassCloudViewModel @Inject constructor(
}

viewModelScope.launch {
UploadManager.observeSuccess(Constants.UPLOAD_TAG_CLOUD).collect {
UploadManager.observeSuccess(Constants.UPLOAD_TAG_TAKE_PHOTO).collect {
handleUploadSuccess(it)
}
}
Expand Down Expand Up @@ -192,7 +192,7 @@ class ClassCloudViewModel @Inject constructor(
mediaType = info.mediaType,
uri = info.uri,

tag = Constants.UPLOAD_TAG_CLOUD,
tag = Constants.UPLOAD_TAG_TAKE_PHOTO,
)
uploadingFiles[data.fileUUID] = data
UploadManager.upload(request)
Expand Down

0 comments on commit 2c8c1b9

Please sign in to comment.