mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Add the ability to do an export of a single chat.
This commit is contained in:
committed by
Michelle Tang
parent
2f41d15a41
commit
2b163a9acd
@@ -61,13 +61,18 @@ class SignalProgressDialog private constructor(
|
||||
message: CharSequence? = null,
|
||||
indeterminate: Boolean = false,
|
||||
cancelable: Boolean = false,
|
||||
cancelListener: DialogInterface.OnCancelListener? = null
|
||||
cancelListener: DialogInterface.OnCancelListener? = null,
|
||||
negativeButtonText: CharSequence? = null,
|
||||
negativeButtonListener: DialogInterface.OnClickListener? = null
|
||||
): SignalProgressDialog {
|
||||
val builder = MaterialAlertDialogBuilder(context).apply {
|
||||
setTitle(null)
|
||||
setMessage(null)
|
||||
setCancelable(cancelable)
|
||||
setOnCancelListener(cancelListener)
|
||||
if (negativeButtonText != null) {
|
||||
setNegativeButton(negativeButtonText, negativeButtonListener)
|
||||
}
|
||||
}
|
||||
|
||||
val customView = LayoutInflater.from(context).inflate(R.layout.signal_progress_dialog, null) as ConstraintLayout
|
||||
|
||||
Reference in New Issue
Block a user