Apply personal filter when private tab not shown

Bug: 336327005
Fix: 337744275
Test: manual
Change-Id: I1c8cbc35f90cd39bb332f9a6b787473779249166
This commit is contained in:
Manish Singh
2024-04-24 13:32:14 +00:00
parent 9229860d60
commit 4875662f48

View File

@@ -667,7 +667,11 @@ public class ManageApplications extends InstrumentedFragment
compositeFilter =
new CompoundFilter(compositeFilter, ApplicationsState.FILTER_PRIVATE_PROFILE);
}
if (mIsPersonalOnly) {
// We might not be showing the private tab even when there's a private profile present and
// there's only personal profile info to show, in which case we should still apply the
// personal filter.
if (mIsPersonalOnly || !(mIsWorkOnly || mIsPrivateProfileOnly)) {
compositeFilter = new CompoundFilter(compositeFilter,
ApplicationsState.FILTER_PERSONAL);
}