Improve Private Space implementation on A15
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
1 parent
18a63ffbf7
commit
99a3b91073
2 files changed
+13
-3
No files matched your search
@@ -402,11 +402,20 @@ public class AlphabeticalAppsList<T extends Context & ActivityContext> implement
|
||||
}
|
||||
|
||||
// Add Install Apps Button first.
|
||||
if (Flags.privateSpaceAppInstallerButton() && !enableMovingContentIntoPrivateSpace) {
|
||||
mPrivateProviderManager.addPrivateSpaceInstallAppButton(mAdapterItems);
|
||||
position++;
|
||||
if (!ATLEAST_BAKLAVA) {
|
||||
// LC: Baklava added a new behavior for the PS app button. (enableMovingContentIntoPrivateSpace)
|
||||
if (Flags.privateSpaceAppInstallerButton() && !enableMovingContentIntoPrivateSpace) {
|
||||
mPrivateProviderManager.addPrivateSpaceInstallAppButton(mAdapterItems);
|
||||
position++;
|
||||
}
|
||||
} else {
|
||||
if (Flags.privateSpaceAppInstallerButton()) {
|
||||
mPrivateProviderManager.addPrivateSpaceInstallAppButton(mAdapterItems);
|
||||
position++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Split of private space apps into user-installed and system apps.
|
||||
Map<Boolean, List<AppInfo>> split = mPrivateApps.stream()
|
||||
.collect(Collectors.partitioningBy(mPrivateProviderManager
|
||||
|
||||
Reference in new issue
Block a user