Skip to content
This repository was archived by the owner on Sep 13, 2019. It is now read-only.

Commit 86a287a

Browse files
committed
Corrected malfunctioning call to super class usage of the Uri path in onMapIntentToUri
1 parent 63cfaa3 commit 86a287a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/src/main/java/com/example/android/sliceviewer/provider/SampleSliceProvider.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ class SampleSliceProvider : SliceProvider() {
4444
override fun onCreateSliceProvider() = true
4545

4646
override fun onMapIntentToUri(intent: Intent?): Uri {
47-
super.onMapIntentToUri(intent)
4847
val path = intent?.data?.path ?: ""
4948
return Uri.Builder()
5049
.scheme(ContentResolver.SCHEME_CONTENT)
5150
.authority(context.packageName)
52-
.appendPath(path)
51+
.path(path)
5352
.build()
5453
}
5554

0 commit comments

Comments
 (0)