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:
1 parent
2f3d0566c9
commit
97253ec3ab
5 files changed
+177
-35
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user