mirror of
https://github.com/wgtunnel/Android-Room-Database-Backup.git
synced 2026-10-09 14:40:29 -07:00
ADD onCancelList. to restoreDialog v1.0.0-beta02
This commit is contained in:
1 parent
e9663a216f
commit
6ea267009c
2 files changed
+5
-1
No files matched your search
+1
-1
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user