commit | ce8d4f51b9405003e664736d81e2374dfc117db9 | [log] [tgz] |
---|---|---|
author | Ryan Lothian <rjlothian@google.com> | Thu Jan 21 15:07:01 2016 +0000 |
committer | Ryan Lothian <rjlothian@google.com> | Thu Jan 21 15:07:01 2016 +0000 |
tree | d6c872a7d1d83933993999ecba2c2c29f00c4bb6 | |
parent | c1b92381f5cc0063cf5d5ce3167ed9b70373dd5b [diff] |
Improve documentation for IntentService The argument to onHandleIntent(Intent) is sometimes null. This is surprising, and isn't mentioned in the Javadoc. + Add a warning about this behavior to the method's Javadoc. + Add @Nullable annotation so tools that do null safety analysis (e.g. Android Studio) will generate a warning for apps that dereference the intent parameter without checking. Change-Id: I26485eba8c79ba700dd9423e5d356efbb423becd