Fix project leak due to not disposed dialog
This commit is contained in:
+7
-2
@@ -106,8 +106,13 @@ class KotlinAndroidAddStringResource : SelfTargetingIntention<KtLiteralStringTem
|
|||||||
|
|
||||||
val dialog = CreateXmlResourceDialog(module, ResourceType.STRING, resourceName, stringValue, true)
|
val dialog = CreateXmlResourceDialog(module, ResourceType.STRING, resourceName, stringValue, true)
|
||||||
dialog.title = EXTRACT_RESOURCE_DIALOG_TITLE
|
dialog.title = EXTRACT_RESOURCE_DIALOG_TITLE
|
||||||
if (showDialog && !dialog.showAndGet()) {
|
if (showDialog) {
|
||||||
return null
|
if (!dialog.showAndGet()) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
dialog.close(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
return CreateXmlResourceParameters(dialog.resourceName,
|
return CreateXmlResourceParameters(dialog.resourceName,
|
||||||
|
|||||||
Reference in New Issue
Block a user