Add @Override for a method that is overriding a new L API

Now all the downstream builds have switched to API Level 21.
Hence putting @Override to new APIs no longer makes javac unhappy.

Change-Id: Ib3324a5d06b17d298beacab8c8802bb14e5be968
This commit is contained in:
Yohei Yukawa 2014-10-21 17:07:47 +09:00
parent 46a007261f
commit 63cbdf49b9

View file

@ -20,6 +20,7 @@ import static com.android.inputmethod.latin.Constants.ImeOption.FORCE_ASCII;
import static com.android.inputmethod.latin.Constants.ImeOption.NO_MICROPHONE; import static com.android.inputmethod.latin.Constants.ImeOption.NO_MICROPHONE;
import static com.android.inputmethod.latin.Constants.ImeOption.NO_MICROPHONE_COMPAT; import static com.android.inputmethod.latin.Constants.ImeOption.NO_MICROPHONE_COMPAT;
import android.annotation.TargetApi;
import android.app.AlertDialog; import android.app.AlertDialog;
import android.content.BroadcastReceiver; import android.content.BroadcastReceiver;
import android.content.Context; import android.content.Context;
@ -1086,8 +1087,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
} }
} }
// We cannot mark this method as @Override until new SDK becomes publicly available. @TargetApi(Build.VERSION_CODES.LOLLIPOP)
// @Override @Override
public void onUpdateCursorAnchorInfo(final CursorAnchorInfo info) { public void onUpdateCursorAnchorInfo(final CursorAnchorInfo info) {
if (isFullscreenMode()) { if (isFullscreenMode()) {
return; return;