Skip to content
Snippets Groups Projects
Commit aa68c3ad authored by Adithya R's avatar Adithya R
Browse files

fixup! Launcher3: Add support for parallel space

Change-Id: I30cbb43ca4eb40e07f70a97b76cd58a530117f3d
parent 93c6a128
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ import com.android.launcher3.util.Executors
import com.android.launcher3.util.StartActivityParams
import com.android.launcher3.util.UserIconInfo
import com.android.quickstep.util.FadeOutRemoteTransition
import com.libremobileos.app.ParallelSpaceManager
/** A wrapper for the hidden API calls */
open class SystemApiWrapper(context: Context?) : ApiWrapper(context) {
......@@ -65,7 +66,11 @@ open class SystemApiWrapper(context: Context?) : ApiWrapper(context) {
return super.queryAllUsers()
}
val users = ArrayMap<UserHandle, UserIconInfo>()
mContext.getSystemService(UserManager::class.java)!!.userProfiles?.forEach { user ->
val usersList = buildList {
addAll(mContext.getSystemService(UserManager::class.java)!!.userProfiles)
addAll(ParallelSpaceManager.getInstance().getParallelUserHandles())
}
usersList.forEach { user ->
mContext.getSystemService(LauncherApps::class.java)!!.getLauncherUserInfo(user)?.apply {
users[user] =
UserIconInfo(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment