Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 90496ba96963ee7f0886e5686271bf549994c9e4
Author: Jeremy Woods <jbwoods@google.com>
Date: Wed Jun 29 17:48:19 2022
Remove UnknownNullness lint suppress in ComponentActivity
Remove the UnknownNullness lint suppressions from ComponentActivity for
the startActivityForResult methods since passing null to any of those
will result in a crash.
RelNote: "Marked the deprecated `startActivityForResult` and `startIntentSenderForResult` methods on `ComponentActivity` with `@NonNull` as passing `null` has always resulted in a crash."
Test: ./gradlew checkApi
Fixes: 231476082
Change-Id: Id2a257e4c6f0327c104d87d677543e589f483ab8
M activity/activity/api/current.txt
M activity/activity/src/main/java/androidx/activity/ComponentActivity.java
M activity/activity/api/public_plus_experimental_current.txt
M activity/activity/api/restricted_current.txt
https://android-review.googlesource.com/2141497
Branch: androidx-main
commit 90496ba96963ee7f0886e5686271bf549994c9e4
Author: Jeremy Woods <jbwoods@google.com>
Date: Wed Jun 29 17:48:19 2022
Remove UnknownNullness lint suppress in ComponentActivity
Remove the UnknownNullness lint suppressions from ComponentActivity for
the startActivityForResult methods since passing null to any of those
will result in a crash.
RelNote: "Marked the deprecated `startActivityForResult` and `startIntentSenderForResult` methods on `ComponentActivity` with `@NonNull` as passing `null` has always resulted in a crash."
Test: ./gradlew checkApi
Fixes: 231476082
Change-Id: Id2a257e4c6f0327c104d87d677543e589f483ab8
M activity/activity/api/current.txt
M activity/activity/src/main/java/androidx/activity/ComponentActivity.java
M activity/activity/api/public_plus_experimental_current.txt
M activity/activity/api/restricted_current.txt
ja...@gmail.com <ja...@gmail.com> #3
Comment has been deleted.
na...@gmail.com <na...@gmail.com> #4
ةعتةتةةت
na...@gmail.com <na...@gmail.com> #5
Comment has been deleted.
Description
We should remove all of the
UnknownNullness
suppressions from ComponentActivity, particularly in thestartActivityForResult
APIs where passing in a null intent will result in a runtime failure anyway.