Fix project leak due to not disposed dialog

This commit is contained in:
Dmitry Jemerov
2017-01-26 18:14:01 +01:00
parent d4af75bc50
commit 68bd5bd323
@@ -106,8 +106,13 @@ class KotlinAndroidAddStringResource : SelfTargetingIntention<KtLiteralStringTem
val dialog = CreateXmlResourceDialog(module, ResourceType.STRING, resourceName, stringValue, true)
dialog.title = EXTRACT_RESOURCE_DIALOG_TITLE
if (showDialog && !dialog.showAndGet()) {
return null
if (showDialog) {
if (!dialog.showAndGet()) {
return null
}
}
else {
dialog.close(0)
}
return CreateXmlResourceParameters(dialog.resourceName,