From 284ca4f3569f3cbdd22e0e044514329758b694f5 Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Tue, 15 May 2018 16:23:49 -0400 Subject: [PATCH] Hook up slice deep links Device indexing might launch them on occassion. Test: existing test passes Test: launch deep link Change-Id: Ie4d3cef2cc384ca809e74b27638d2c5a1d4d98a2 Fixes: 79435996 --- .../android/settings/slices/SliceDeepLinkSpringBoard.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/slices/SliceDeepLinkSpringBoard.java b/src/com/android/settings/slices/SliceDeepLinkSpringBoard.java index d02431c8f77..7f1a0f35cae 100644 --- a/src/com/android/settings/slices/SliceDeepLinkSpringBoard.java +++ b/src/com/android/settings/slices/SliceDeepLinkSpringBoard.java @@ -45,7 +45,11 @@ public class SliceDeepLinkSpringBoard extends Activity { // This shouldn't matter since the slice is shown instead of the device // index caring about the launch uri. Uri slice = Uri.parse(intent.getStringExtra(EXTRA_SLICE)); - Log.e(TAG, "Slice intent launched: " + slice); + SlicesDatabaseAccessor slicesDatabaseAccessor = new SlicesDatabaseAccessor(this); + // Sadly have to block here because we don't know where to go. + final SliceData sliceData = slicesDatabaseAccessor.getSliceDataFromUri(slice); + Intent launchIntent = SliceBuilderUtils.getContentIntent(this, sliceData); + startActivity(launchIntent); } else { startActivity(intent); }