Revert "Restore Archived Pinned Shortcuts instead of removing them."
This reverts commit abbb991d8f.
Reason for revert: DroidMonitor: Potential culprit for Bug X - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
Change-Id: Ifa241a631a1a4361623cfe0e81e31ca6b44e9d73
This commit is contained in:
1 parent
abbb991d8f
commit
f5cb1b664b
7 files changed
+70
-219
No files matched your search
@@ -24,7 +24,6 @@ import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_DEEP_SH
|
||||
import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME;
|
||||
import static com.android.launcher3.Utilities.SHOULD_SHOW_FIRST_PAGE_WIDGET;
|
||||
import static com.android.launcher3.icons.cache.CacheLookupFlag.DEFAULT_LOOKUP_FLAG;
|
||||
import static com.android.launcher3.model.data.ItemInfoWithIcon.FLAG_ARCHIVED;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.ContentValues;
|
||||
@@ -308,7 +307,7 @@ public class LoaderCursor extends CursorWrapper {
|
||||
* Make an WorkspaceItemInfo object for a restored application or shortcut item that points
|
||||
* to a package that is not yet installed on the system.
|
||||
*/
|
||||
public WorkspaceItemInfo getRestoredItemInfo(Intent intent, boolean isArchived) {
|
||||
public WorkspaceItemInfo getRestoredItemInfo(Intent intent) {
|
||||
final WorkspaceItemInfo info = new WorkspaceItemInfo();
|
||||
info.user = user;
|
||||
info.intent = intent;
|
||||
@@ -318,7 +317,7 @@ public class LoaderCursor extends CursorWrapper {
|
||||
mIconCache.getTitleAndIcon(info, DEFAULT_LOOKUP_FLAG);
|
||||
}
|
||||
|
||||
if (hasRestoreFlag(WorkspaceItemInfo.FLAG_RESTORED_ICON) || isArchived) {
|
||||
if (hasRestoreFlag(WorkspaceItemInfo.FLAG_RESTORED_ICON)) {
|
||||
String title = getTitle();
|
||||
if (!TextUtils.isEmpty(title)) {
|
||||
info.title = Utilities.trim(title);
|
||||
@@ -334,7 +333,6 @@ public class LoaderCursor extends CursorWrapper {
|
||||
info.contentDescription = mIconCache.getUserBadgedLabel(info.title, info.user);
|
||||
info.itemType = itemType;
|
||||
info.status = restoreFlag;
|
||||
if (isArchived) info.runtimeStatusFlags |= FLAG_ARCHIVED;
|
||||
return info;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user