fix the issue slice cannot be triggered from uri
Bug: 122879432
Change-Id: Id36a45bbbdb858b5b8d9fd6f1b3f5f97eb84e9fd
Test:
1. install SliceViewer (https://github.com/android/user-interface-samples/releases)
2. adb shell am start -d "slice-https://sliceviewer.android.example.com/hello"
(cherry picked from commit 09b91e6027)
This commit is contained in:
@@ -390,6 +390,8 @@ public class SliceManager {
|
||||
}
|
||||
Bundle extras = new Bundle();
|
||||
extras.putParcelable(SliceProvider.EXTRA_INTENT, intent);
|
||||
extras.putParcelableArrayList(SliceProvider.EXTRA_SUPPORTED_SPECS,
|
||||
new ArrayList<>(supportedSpecs));
|
||||
final Bundle res = provider.call(SliceProvider.METHOD_MAP_INTENT, null, extras);
|
||||
if (res == null) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user