Merge "[pixel-search] add escape hatch" into ub-launcher3-master
This commit is contained in:
@@ -61,4 +61,8 @@ public class RemoteActionItemInfo extends ItemInfoWithIcon {
|
||||
public boolean shouldStartInLauncher() {
|
||||
return mShouldStart;
|
||||
}
|
||||
|
||||
public boolean isEscapeHatch() {
|
||||
return mToken.contains("item_type:[ESCAPE_HATCH]");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ public class SearchResultIconRow extends DoubleShadowBubbleTextView implements
|
||||
RemoteActionItemInfo itemInfo = new RemoteActionItemInfo(remoteAction, token, start);
|
||||
|
||||
applyFromRemoteActionInfo(itemInfo);
|
||||
if (!loadIconFromResource()) {
|
||||
if (itemInfo.isEscapeHatch() || !loadIconFromResource()) {
|
||||
UI_HELPER_EXECUTOR.post(() -> {
|
||||
// If the Drawable from the remote action is not AdaptiveBitmap, styling will not
|
||||
// work.
|
||||
|
||||
Reference in New Issue
Block a user