Merge "Fix nullable annotation to match overriden method in super class" am: 35501e5b25
Change-Id: I692ad8bae7bdc147912b18103ae51f7f661c6c98
This commit is contained in:
@@ -3987,7 +3987,7 @@ package android.app {
|
||||
method public boolean startActivityIfNeeded(@NonNull @RequiresPermission android.content.Intent, int);
|
||||
method public boolean startActivityIfNeeded(@NonNull @RequiresPermission android.content.Intent, int, @Nullable android.os.Bundle);
|
||||
method public void startIntentSenderForResult(android.content.IntentSender, int, @Nullable android.content.Intent, int, int, int) throws android.content.IntentSender.SendIntentException;
|
||||
method public void startIntentSenderForResult(android.content.IntentSender, int, @Nullable android.content.Intent, int, int, int, android.os.Bundle) throws android.content.IntentSender.SendIntentException;
|
||||
method public void startIntentSenderForResult(android.content.IntentSender, int, @Nullable android.content.Intent, int, int, int, @Nullable android.os.Bundle) throws android.content.IntentSender.SendIntentException;
|
||||
method @Deprecated public void startIntentSenderFromChild(android.app.Activity, android.content.IntentSender, int, android.content.Intent, int, int, int) throws android.content.IntentSender.SendIntentException;
|
||||
method @Deprecated public void startIntentSenderFromChild(android.app.Activity, android.content.IntentSender, int, android.content.Intent, int, int, int, @Nullable android.os.Bundle) throws android.content.IntentSender.SendIntentException;
|
||||
method public void startLocalVoiceInteraction(android.os.Bundle);
|
||||
@@ -10350,8 +10350,8 @@ package android.content {
|
||||
method public void startActivity(android.content.Intent, android.os.Bundle);
|
||||
method public android.content.ComponentName startForegroundService(android.content.Intent);
|
||||
method public boolean startInstrumentation(android.content.ComponentName, String, android.os.Bundle);
|
||||
method public void startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int) throws android.content.IntentSender.SendIntentException;
|
||||
method public void startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle) throws android.content.IntentSender.SendIntentException;
|
||||
method public void startIntentSender(android.content.IntentSender, @Nullable android.content.Intent, int, int, int) throws android.content.IntentSender.SendIntentException;
|
||||
method public void startIntentSender(android.content.IntentSender, @Nullable android.content.Intent, int, int, int, @Nullable android.os.Bundle) throws android.content.IntentSender.SendIntentException;
|
||||
method public android.content.ComponentName startService(android.content.Intent);
|
||||
method public boolean stopService(android.content.Intent);
|
||||
method public void unbindService(android.content.ServiceConnection);
|
||||
|
||||
@@ -5372,7 +5372,7 @@ public class Activity extends ContextThemeWrapper
|
||||
return mActivityTransitionState.isTransitionRunning();
|
||||
}
|
||||
|
||||
private Bundle transferSpringboardActivityOptions(Bundle options) {
|
||||
private Bundle transferSpringboardActivityOptions(@Nullable Bundle options) {
|
||||
if (options == null && (mWindow != null && !mWindow.isActive())) {
|
||||
final ActivityOptions activityOptions = getActivityOptions();
|
||||
if (activityOptions != null &&
|
||||
@@ -5540,7 +5540,7 @@ public class Activity extends ContextThemeWrapper
|
||||
*/
|
||||
public void startIntentSenderForResult(IntentSender intent, int requestCode,
|
||||
@Nullable Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags,
|
||||
Bundle options) throws IntentSender.SendIntentException {
|
||||
@Nullable Bundle options) throws IntentSender.SendIntentException {
|
||||
if (mParent == null) {
|
||||
startIntentSenderForResultInner(intent, mEmbeddedID, requestCode, fillInIntent,
|
||||
flagsMask, flagsValues, options);
|
||||
@@ -5557,7 +5557,7 @@ public class Activity extends ContextThemeWrapper
|
||||
|
||||
private void startIntentSenderForResultInner(IntentSender intent, String who, int requestCode,
|
||||
Intent fillInIntent, int flagsMask, int flagsValues,
|
||||
Bundle options)
|
||||
@Nullable Bundle options)
|
||||
throws IntentSender.SendIntentException {
|
||||
try {
|
||||
options = transferSpringboardActivityOptions(options);
|
||||
@@ -5718,6 +5718,7 @@ public class Activity extends ContextThemeWrapper
|
||||
* <var>flagsMask</var>
|
||||
* @param extraFlags Always set to 0.
|
||||
*/
|
||||
@Override
|
||||
public void startIntentSender(IntentSender intent,
|
||||
@Nullable Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags)
|
||||
throws IntentSender.SendIntentException {
|
||||
@@ -5745,9 +5746,10 @@ public class Activity extends ContextThemeWrapper
|
||||
* have also been supplied by the IntentSender, options given here will
|
||||
* override any that conflict with those given by the IntentSender.
|
||||
*/
|
||||
@Override
|
||||
public void startIntentSender(IntentSender intent,
|
||||
@Nullable Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags,
|
||||
Bundle options) throws IntentSender.SendIntentException {
|
||||
@Nullable Bundle options) throws IntentSender.SendIntentException {
|
||||
if (options != null) {
|
||||
startIntentSenderForResult(intent, -1, fillInIntent, flagsMask,
|
||||
flagsValues, extraFlags, options);
|
||||
|
||||
@@ -449,7 +449,8 @@ public class ContextWrapper extends Context {
|
||||
|
||||
@Override
|
||||
public void startIntentSender(IntentSender intent,
|
||||
Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags)
|
||||
@Nullable Intent fillInIntent, int flagsMask, int flagsValues,
|
||||
int extraFlags)
|
||||
throws IntentSender.SendIntentException {
|
||||
mBase.startIntentSender(intent, fillInIntent, flagsMask,
|
||||
flagsValues, extraFlags);
|
||||
@@ -457,8 +458,9 @@ public class ContextWrapper extends Context {
|
||||
|
||||
@Override
|
||||
public void startIntentSender(IntentSender intent,
|
||||
Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags,
|
||||
Bundle options) throws IntentSender.SendIntentException {
|
||||
@Nullable Intent fillInIntent, int flagsMask, int flagsValues,
|
||||
int extraFlags, @Nullable Bundle options)
|
||||
throws IntentSender.SendIntentException {
|
||||
mBase.startIntentSender(intent, fillInIntent, flagsMask,
|
||||
flagsValues, extraFlags, options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user