add hint - your status was set automatically
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
Родитель
13208e85f9
Коммит
3f74a440d5
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче