Refactor CustomSliceManager.
- Make everything that can be static, static. - Also removed a unused slice for battery info. Next step - going to make CustomSliceManager into a regular class instead of getting it from FeatureProvider. This way it's no longer an application level singleton, then we can do things like attaching lifecycle to it. It will be easier to deal with "session" based use case after the refactor Bug: 123937830 Test: manual Change-Id: I384761a6894fa907f72a3610437835c4dd4d1944
This commit is contained in:
@@ -47,7 +47,7 @@ public class SliceDeepLinkSpringBoard extends Activity {
|
||||
// TODO (b/80263568) Avoid duplicating this list of Slice Uris.
|
||||
final CustomSliceManager customSliceManager = FeatureFactory.getFactory(this)
|
||||
.getSlicesFeatureProvider().getCustomSliceManager(this);
|
||||
if (customSliceManager.isValidUri(sliceUri)) {
|
||||
if (CustomSliceRegistry.isValidUri(sliceUri)) {
|
||||
final CustomSliceable sliceable =
|
||||
customSliceManager.getSliceableFromUri(sliceUri);
|
||||
launchIntent = sliceable.getIntent();
|
||||
|
Reference in New Issue
Block a user