Revert "Do not prebind sticky slices."
This reverts commit ac59ea8e23
.
Reason for revert: Fix it using another approach in ag/11629780. The prebind part will be helpful to cache slice data.
Bug: 152365480
Change-Id: Iebed42027552a923907647b61480f135ac4f4097
This commit is contained in:
@@ -18,8 +18,6 @@ package com.android.settings.homepage.contextualcards;
|
||||
|
||||
import static android.app.slice.Slice.HINT_ERROR;
|
||||
|
||||
import static com.android.settings.intelligence.ContextualCardProto.ContextualCard.Category.STICKY_VALUE;
|
||||
|
||||
import android.app.settings.SettingsEnums;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
@@ -96,11 +94,6 @@ public class EligibleCardChecker implements Callable<ContextualCard> {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (card.getCategory() == STICKY_VALUE) {
|
||||
Log.d(TAG, "Sticky card, skip checking. Uri = " + card.getSliceUri());
|
||||
return true;
|
||||
}
|
||||
|
||||
final Slice slice = bindSlice(uri);
|
||||
|
||||
if (isSliceToggleable(slice)) {
|
||||
|
Reference in New Issue
Block a user