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:
parent
46a007261f
commit
63cbdf49b9
1 changed files with 3 additions and 2 deletions
|
@ -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_COMPAT;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.BroadcastReceiver;
|
||||
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.
|
||||
// @Override
|
||||
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
|
||||
@Override
|
||||
public void onUpdateCursorAnchorInfo(final CursorAnchorInfo info) {
|
||||
if (isFullscreenMode()) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue