Remove parameter from uri when get slice

Slice may added parameter in their uri.
When get slice through uri, removed parameter from uri to get correct slice.

Bug: 128651940
Test: make -j42 RunSettingsRoboTests
Change-Id: Id3cb7b91026384ce4e22c157a2908a5e18bc7993
This commit is contained in:
hughchen
2019-03-15 15:14:16 +08:00
parent defd0155a1
commit 9e78737483
2 changed files with 18 additions and 1 deletions

View File

@@ -322,7 +322,7 @@ public class CustomSliceRegistry {
}
public static Class<? extends CustomSliceable> getSliceClassByUri(Uri uri) {
return sUriToSlice.get(uri);
return sUriToSlice.get(removeParameterFromUri(uri));
}
public static Uri removeParameterFromUri(Uri uri) {