File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
dynamic-links/app/src/main/java/com/google/firebase/quickstart/dynamiclinks/kotlin Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import android.os.Bundle
6
6
import android.util.Log
7
7
import androidx.appcompat.app.AppCompatActivity
8
8
import com.google.firebase.appinvite.FirebaseAppInvite
9
+ import com.google.firebase.dynamiclinks.PendingDynamicLinkData
9
10
import com.google.firebase.dynamiclinks.ShortDynamicLink
10
11
import com.google.firebase.dynamiclinks.ktx.androidParameters
11
12
import com.google.firebase.dynamiclinks.ktx.component1
@@ -34,7 +35,7 @@ abstract class MainActivity : AppCompatActivity() {
34
35
// [START get_deep_link]
35
36
Firebase .dynamicLinks
36
37
.getDynamicLink(intent)
37
- .addOnSuccessListener(this ) { pendingDynamicLinkData ->
38
+ .addOnSuccessListener(this ) { pendingDynamicLinkData: PendingDynamicLinkData ? ->
38
39
// Get deep link from result (may be null if no link is found)
39
40
var deepLink: Uri ? = null
40
41
if (pendingDynamicLinkData != null ) {
You can’t perform that action at this time.
0 commit comments