|
|
@ -89,6 +89,7 @@ class FileAssociationActivity : |
|
|
|
finish() |
|
|
|
finish() |
|
|
|
} |
|
|
|
} |
|
|
|
viewModel.notSupportedLiveData.observe(this) { data -> |
|
|
|
viewModel.notSupportedLiveData.observe(this) { data -> |
|
|
|
|
|
|
|
binding.rotateLoading.hide() |
|
|
|
alert( |
|
|
|
alert( |
|
|
|
title = appCtx.getString(R.string.draw), |
|
|
|
title = appCtx.getString(R.string.draw), |
|
|
|
message = appCtx.getString(R.string.file_not_supported, data.second) |
|
|
|
message = appCtx.getString(R.string.file_not_supported, data.second) |
|
|
@ -96,7 +97,9 @@ class FileAssociationActivity : |
|
|
|
okButton { |
|
|
|
okButton { |
|
|
|
importBook(data.first) |
|
|
|
importBook(data.first) |
|
|
|
} |
|
|
|
} |
|
|
|
cancelButton() |
|
|
|
cancelButton { |
|
|
|
|
|
|
|
finish() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
intent.data?.let { data -> |
|
|
|
intent.data?.let { data -> |
|
|
|