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!!,
|
backupStatus.message!!,
|
||||||
ClearAt(type = "period", time = backupStatus.clearAt.toString())
|
ClearAt(type = "period", time = backupStatus.clearAt.toString())
|
||||||
)
|
)
|
||||||
|
binding.automaticStatus.visibility = View.VISIBLE
|
||||||
adapter.isBackupStatusAvailable = true
|
adapter.isBackupStatusAvailable = true
|
||||||
predefinedStatusesList.add(0, backupPredefinedStatus)
|
predefinedStatusesList.add(0, backupPredefinedStatus)
|
||||||
adapter.notifyDataSetChanged()
|
adapter.notifyDataSetChanged()
|
||||||
|
@ -305,6 +306,7 @@ class SetStatusDialogFragment :
|
||||||
R.string.status_reverted,
|
R.string.status_reverted,
|
||||||
Snackbar.LENGTH_LONG
|
Snackbar.LENGTH_LONG
|
||||||
).show()
|
).show()
|
||||||
|
binding.automaticStatus.visibility = View.GONE
|
||||||
adapter.isBackupStatusAvailable = false
|
adapter.isBackupStatusAvailable = false
|
||||||
predefinedStatusesList.removeAt(0)
|
predefinedStatusesList.removeAt(0)
|
||||||
adapter.notifyDataSetChanged()
|
adapter.notifyDataSetChanged()
|
||||||
|
|
|
@ -386,6 +386,16 @@
|
||||||
|
|
||||||
</LinearLayout>
|
</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
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/predefinedStatusList"
|
android:id="@+id/predefinedStatusList"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
@ -830,4 +830,5 @@ How to translate with transifex:
|
||||||
<string name="previously_set">Previously set</string>
|
<string name="previously_set">Previously set</string>
|
||||||
<string name="conversation_read_only_failed">Failed to set conversation Read-only</string>
|
<string name="conversation_read_only_failed">Failed to set conversation Read-only</string>
|
||||||
<string name="status_reverted">Status Reverted</string>
|
<string name="status_reverted">Status Reverted</string>
|
||||||
|
<string name="automatic_status_set">Your status was set automatically</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче