|
|
|
|
@ -108,7 +108,7 @@ class HomeActivity : PokerAnalyticsActivity() { |
|
|
|
|
when (requestCode) { |
|
|
|
|
RequestCode.IMPORT.value -> { |
|
|
|
|
if (resultCode == ResultCode.IMPORT_UNRECOGNIZED_FORMAT.value) { |
|
|
|
|
showAlertDialog(this, message = R.string.unknown_import_format_popup_message) |
|
|
|
|
showAlertDialog(context = this, message = R.string.unknown_import_format_popup_message) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -166,9 +166,9 @@ class HomeActivity : PokerAnalyticsActivity() { |
|
|
|
|
|
|
|
|
|
// Import |
|
|
|
|
|
|
|
|
|
fun requestImportConfirmation(uri: Uri) { |
|
|
|
|
private fun requestImportConfirmation(uri: Uri) { |
|
|
|
|
|
|
|
|
|
showAlertDialog(this, R.string.import_confirmation, showCancelButton = true, positiveAction = { |
|
|
|
|
showAlertDialog(context = this, title = R.string.import_confirmation, showCancelButton = true, positiveAction = { |
|
|
|
|
ImportActivity.newInstanceForResult(this, uri) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|