mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-24 05:55:39 +03:00
add hint - your status was set automatically
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
13208e85f9
commit
3f74a440d5
3 changed files with 13 additions and 0 deletions
|
@ -177,6 +177,7 @@ class SetStatusDialogFragment :
|
|||
backupStatus.message!!,
|
||||
ClearAt(type = "period", time = backupStatus.clearAt.toString())
|
||||
)
|
||||
binding.automaticStatus.visibility = View.VISIBLE
|
||||
adapter.isBackupStatusAvailable = true
|
||||
predefinedStatusesList.add(0, backupPredefinedStatus)
|
||||
adapter.notifyDataSetChanged()
|
||||
|
@ -305,6 +306,7 @@ class SetStatusDialogFragment :
|
|||
R.string.status_reverted,
|
||||
Snackbar.LENGTH_LONG
|
||||
).show()
|
||||
binding.automaticStatus.visibility = View.GONE
|
||||
adapter.isBackupStatusAvailable = false
|
||||
predefinedStatusesList.removeAt(0)
|
||||
adapter.notifyDataSetChanged()
|
||||
|
|
|
@ -386,6 +386,16 @@
|
|||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/automatic_status"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding ="10dp"
|
||||
android:text= "@string/automatic_status_set"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
</TextView>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/predefinedStatusList"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -830,4 +830,5 @@ How to translate with transifex:
|
|||
<string name="previously_set">Previously set</string>
|
||||
<string name="conversation_read_only_failed">Failed to set conversation Read-only</string>
|
||||
<string name="status_reverted">Status Reverted</string>
|
||||
<string name="automatic_status_set">Your status was set automatically</string>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue