Commit fabc42e2 authored by wanglei's avatar wanglei

...ui

parent 9339dee9
...@@ -221,7 +221,7 @@ object DialogViews { ...@@ -221,7 +221,7 @@ object DialogViews {
return dialog return dialog
} }
fun Context.showDeletePermanentlyDialog(deleteAction: () -> Unit) { fun Context.showDeletePermanentlyDialog( deleteAction: () -> Unit) {
val binding = DialogDeletePermanentlyBinding.inflate(LayoutInflater.from(this)) val binding = DialogDeletePermanentlyBinding.inflate(LayoutInflater.from(this))
val dialog = AlertDialog.Builder(this, R.style.CustomAlertDialogStyle).create() val dialog = AlertDialog.Builder(this, R.style.CustomAlertDialogStyle).create()
dialog.setView(binding.root) dialog.setView(binding.root)
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
android:layout_marginHorizontal="30dp" android:layout_marginHorizontal="30dp"
android:layout_marginTop="14dp" android:layout_marginTop="14dp"
android:gravity="center" android:gravity="center"
android:text="The photo or video will be deleted from your device permanently,Are you sure to delete?"
android:textColor="#666666" android:textColor="#666666"
android:textSize="14sp" android:textSize="14sp"
tools:ignore="HardcodedText" /> tools:ignore="HardcodedText" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment