Lint: Remove lint suppress quickfix (does not work currently with Kotlin)

This commit is contained in:
Yan Zhulanow
2016-03-23 16:01:16 +03:00
parent 5be2b90c6d
commit aa4f2e426b
@@ -237,7 +237,7 @@ public class AndroidLintExternalAnnotator extends ExternalAnnotator<State, State
if (startElement != null && endElement != null && !inspection.isSuppressedFor(startElement)) { if (startElement != null && endElement != null && !inspection.isSuppressedFor(startElement)) {
if (problemData.getConfiguredSeverity() != null) { if (problemData.getConfiguredSeverity() != null) {
HighlightDisplayLevel configuredLevel = HighlightDisplayLevel configuredLevel =
org.jetbrains.android.inspections.klint.AndroidLintInspectionBase.toHighlightDisplayLevel(problemData.getConfiguredSeverity()); AndroidLintInspectionBase.toHighlightDisplayLevel(problemData.getConfiguredSeverity());
if (configuredLevel != null) { if (configuredLevel != null) {
displayLevel = configuredLevel; displayLevel = configuredLevel;
} }
@@ -253,7 +253,6 @@ public class AndroidLintExternalAnnotator extends ExternalAnnotator<State, State
for (IntentionAction intention : inspection.getIntentions(startElement, endElement)) { for (IntentionAction intention : inspection.getIntentions(startElement, endElement)) {
annotation.registerFix(intention); annotation.registerFix(intention);
} }
annotation.registerFix(new org.jetbrains.android.inspections.klint.SuppressLintIntentionAction(key.getID(), startElement));
annotation.registerFix(new MyDisableInspectionFix(key)); annotation.registerFix(new MyDisableInspectionFix(key));
annotation.registerFix(new MyEditInspectionToolsSettingsAction(key, inspection)); annotation.registerFix(new MyEditInspectionToolsSettingsAction(key, inspection));