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.
This commit is contained in:
Wiktor Lawski 2014-09-13 15:49:09 +02:00
parent 08105d98de
commit c3ce19cf5a

View File

@ -1,5 +1,7 @@
/*
* Copyright (C) 2008 The Android Open Source Project
* Copyright (C) 2014 Philipp Crocoll <crocoapps@googlemail.com>
* Copyright (C) 2014 Wiktor Lawski <wiktor.lawski@gmail.com>
*
* 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<CharSequence> suggestions, boolean completions,
boolean typedWordValid, boolean haveMinimalSuggestion) {
clear();