Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f6028ed authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Hook up slice deep links" into pi-dev

am: 7e6d495c

Change-Id: I0a0bd515a5b43828092ca4ec50ef9d20c660a4da
parents 8a8b58d3 7e6d495c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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);
            }