add hint - your status was set automatically

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2024-11-06 21:35:33 +01:00
parent 13208e85f9
commit 3f74a440d5
No known key found for this signature in database
GPG key ID: F7AA2A8B65B50220
3 changed files with 13 additions and 0 deletions

View file

@ -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()

View file

@ -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"

View file

@ -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>