mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-12-15 05:01:45 +03:00
show backup status when only when status message is previously set
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
43a49494ae
commit
8bf7fd8553
1 changed files with 13 additions and 11 deletions
|
@ -177,17 +177,19 @@ class SetStatusDialogFragment :
|
|||
override fun onNext(statusOverall: StatusOverall) {
|
||||
if (statusOverall.ocs?.meta?.statusCode == HTTP_STATUS_CODE_OK) {
|
||||
backupStatus = statusOverall.ocs?.data!!
|
||||
isBackupStatusAvailable = true
|
||||
val backupPredefinedStatus = PredefinedStatus(
|
||||
backupStatus.userId!!,
|
||||
backupStatus.icon,
|
||||
backupStatus.message!!,
|
||||
ClearAt(type = "period", time = backupStatus.clearAt.toString())
|
||||
)
|
||||
binding.automaticStatus.visibility = View.VISIBLE
|
||||
adapter.isBackupStatusAvailable = true
|
||||
predefinedStatusesList.add(0, backupPredefinedStatus)
|
||||
adapter.notifyDataSetChanged()
|
||||
if(backupStatus.message!= null){
|
||||
isBackupStatusAvailable = true
|
||||
val backupPredefinedStatus = PredefinedStatus(
|
||||
backupStatus.userId!!,
|
||||
backupStatus.icon,
|
||||
backupStatus.message!!,
|
||||
ClearAt(type = "period", time = backupStatus.clearAt.toString())
|
||||
)
|
||||
binding.automaticStatus.visibility = View.VISIBLE
|
||||
adapter.isBackupStatusAvailable = true
|
||||
predefinedStatusesList.add(0, backupPredefinedStatus)
|
||||
adapter.notifyDataSetChanged()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue