From c3ce19cf5a465a367c56832a0ab00d3e38366798 Mon Sep 17 00:00:00 2001 From: Wiktor Lawski Date: Sat, 13 Sep 2014 15:49:09 +0200 Subject: [PATCH] KP2ASoftKeyboard2: Ignore false positive from Lint Calling onDraw method in this context makes Lint confused. Ignoring this case allows generating output files. Additionally added missing copyright line. --- .../java/src/keepass2android/softkeyboard/CandidateView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/java/KP2ASoftKeyboard2/java/src/keepass2android/softkeyboard/CandidateView.java b/src/java/KP2ASoftKeyboard2/java/src/keepass2android/softkeyboard/CandidateView.java index 429eaa4c..9b83ea3b 100644 --- a/src/java/KP2ASoftKeyboard2/java/src/keepass2android/softkeyboard/CandidateView.java +++ b/src/java/KP2ASoftKeyboard2/java/src/keepass2android/softkeyboard/CandidateView.java @@ -1,5 +1,7 @@ /* * Copyright (C) 2008 The Android Open Source Project + * Copyright (C) 2014 Philipp Crocoll + * Copyright (C) 2014 Wiktor Lawski * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of @@ -16,6 +18,7 @@ package keepass2android.softkeyboard; +import android.annotation.SuppressLint; import android.content.Context; import android.content.res.Resources; import android.graphics.Canvas; @@ -313,6 +316,7 @@ public class CandidateView extends View { invalidate(); } + @SuppressLint("WrongCall") public void setSuggestions(List suggestions, boolean completions, boolean typedWordValid, boolean haveMinimalSuggestion) { clear();