Change the load logic of FolderNameProvider

Work profile apps are suggested as "Work" folder name

Bug: 147359653
Bug: 147359733

Change-Id: Idb2438de9c71c85cfeca6a6b0e116174ea2f3b62
This commit is contained in:
Hyunyoung Song committed 2020-01-08 23:31:58 -08:00
1 parent 2f3d0566c9
commit 97253ec3ab
5 files changed
+177 -35

No files matched your search

+11
View File
@@ -26,6 +26,8 @@ import android.os.Process;
import android.os.UserHandle;
import android.os.UserManager;
import androidx.annotation.VisibleForTesting;
import com.android.launcher3.util.ComponentKey;
import com.android.launcher3.util.PackageManagerHelper;
@@ -89,6 +91,15 @@ public class AppInfo extends ItemInfoWithIcon {
runtimeStatusFlags = info.runtimeStatusFlags;
}
@VisibleForTesting
public AppInfo(ComponentName componentName, CharSequence title,
UserHandle user, Intent intent) {
this.componentName = componentName;
this.title = title;
this.user = user;
this.intent = intent;
}
@Override
protected String dumpProperties() {
return super.dumpProperties() + " componentName=" + componentName;