Fixed
Status Update
Comments
al...@google.com <al...@google.com>
ap...@google.com <ap...@google.com> #2
Seems that this issue will never be fixed as google has marked the multiple duplicates as `wont fix`.
na...@google.com <na...@google.com> #3
Adding the following block in Support4Demos.onCreate:
ViewCompat.addOnUnhandledKeyEventListener(getListView(),
new ViewCompat.OnUnhandledKeyEventListenerCompat() {
@Override
public boolean onUnhandledKeyEvent(View v, KeyEvent event) {
return false;
}
});
produces:
04-28 17:40:41.523 4608-4608/com.example.android.supportv4 I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
04-28 17:40:41.524 4608-4608/com.example.android.supportv4 I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
on a Nexus 6 API 23 emulator before the CL, and no such message with the CL
Description
Version used: 1.11.0-beta02
This is rather a simple lint issue: The methods
PendingIntentCompat#getActivity
andPendingIntentCompat#getService
can returnnull
values if the flag is set toPendingIntent.FLAG_NO_CREATE
whose documentation is as follows:So, the
@NonNull
annotation for return type is simply wrong and should be@Nullable
instead.