mirror of
https://github.com/immich-app/immich.git
synced 2026-02-04 08:49:01 +03:00
fix prompt cancellation
This commit is contained in:
@@ -152,10 +152,7 @@ private class NetworkApiImpl(private val context: Context) : NetworkApi {
|
||||
.setMessage(text.message)
|
||||
.setView(container)
|
||||
.setPositiveButton(text.confirm) { _, _ -> callback(editText.text.toString()) }
|
||||
.setNegativeButton(text.cancel) { dialog, _ ->
|
||||
dialog.cancel()
|
||||
callback(null)
|
||||
}
|
||||
.setNegativeButton(text.cancel) { _, _ -> callback(null) }
|
||||
.setOnCancelListener { callback(null) }
|
||||
.show()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user