Move some slice related api out of BasePreferenceController

And share with CustomSliceable.

Bug: 121150258
Test: rebuild
Change-Id: Ia5aed9c156fb168c1f001da6e37f7f12f191b385
This commit is contained in:
Fan Zhang
2019-02-14 15:06:23 -08:00
parent 1aa75aa71a
commit 45f961b624
4 changed files with 74 additions and 56 deletions

View File

@@ -411,9 +411,7 @@ public class SettingsSliceProvider extends SliceProvider {
@VisibleForTesting
void loadSliceInBackground(Uri uri) {
ThreadUtils.postOnBackgroundThread(() -> {
loadSlice(uri);
});
ThreadUtils.postOnBackgroundThread(() -> loadSlice(uri));
}
/**