ADD onCancelList. to restoreDialog v1.0.0-beta02

This commit is contained in:
Raphael Ebner authored and rafi0101 committed 2020-06-30 20:45:23 +02:00
1 parent e9663a216f
commit 6ea267009c
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ android {
minSdkVersion 26
targetSdkVersion 29
versionCode 1
versionName "1.0.0-beta01"
versionName "1.0.0-beta02"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
@@ -462,6 +462,10 @@ class RoomBackup {
.setItems(filesStringArray) { _, which ->
restoreSelectedFile(filesStringArray[which])
}
.setOnCancelListener{
if (enableLogDebug) Log.d(TAG, "Restore dialog canceled")
onCompleteListener?.onComplete(false, "Restore dialog canceled")
}
.show()
}