-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Describe the bug
The onNewIntent
method on AbstractSpotifyPkceLoginActivity allows a nullable intent.
To Reproduce
Steps to reproduce the behavior:
- update androidx.activity:activity-compose to version 1.9.0 from 1.8.2
- build android project
- See error
Inherited platform declarations clash: The following declarations have the same JVM signature (onNewIntent(Landroid/content/Intent;)V):
fun onNewIntent(intent: Intent):
fun onNewIntent(intent: Intent?):
Expected behavior
Android project builds
Additional context
This failing build is related to the new source of ComponentActivity in androidx.activity:activity-compose
See 1.8.2
@CallSuper
@Override
protected void onNewIntent(
@SuppressLint({"UnknownNullness", "MissingNullability"}) Intent intent
) {
super.onNewIntent(intent);
for (Consumer<Intent> listener : mOnNewIntentListeners) {
listener.accept(intent);
}
}
See 1.9.0
@CallSuper
override fun onNewIntent(
@Suppress("InvalidNullabilityOverride")
intent: Intent
) {
super.onNewIntent(intent)
for (listener in onNewIntentListeners) {
listener.accept(intent)
}
}
alexrdclement, Ralfons-06 and StefanMinke
Metadata
Metadata
Assignees
Labels
No labels