Merge "Hook up slice deep links" into pi-dev am: 7e6d495cec

am: 9f6028edde

Change-Id: Ie8ccce9eb7e880c8764a2ce3cb6d1151770c9393
This commit is contained in:
Jason Monk
2018-05-17 13:56:03 -07:00
committed by android-build-merger

View File

@@ -45,7 +45,11 @@ public class SliceDeepLinkSpringBoard extends Activity {
// This shouldn't matter since the slice is shown instead of the device // This shouldn't matter since the slice is shown instead of the device
// index caring about the launch uri. // index caring about the launch uri.
Uri slice = Uri.parse(intent.getStringExtra(EXTRA_SLICE)); 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 { } else {
startActivity(intent); startActivity(intent);
} }