Update the getHideInSettingsInQuietMode to getHideInUiInQuietMode

Bug: 307515481
Test: manual
Change-Id: I75996df11e9276eff5c388b509d630a0d4b3d39f
This commit is contained in:
Olivier Nshimiye
2023-10-25 16:05:04 +00:00
parent 59709d4031
commit fcafdcffb0
3 changed files with 7 additions and 3 deletions

View File

@@ -42,6 +42,7 @@ import android.content.IntentFilter;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.UserInfo;
import android.content.pm.UserProperties;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
@@ -312,7 +313,8 @@ public class AccountPreferenceController extends AbstractPreferenceController
&& !(Flags.allowPrivateProfile() && profile.isPrivateProfile())
&& (mType & ProfileSelectFragment.ProfileType.PERSONAL) != 0))
&& !(mUm.getUserProperties(profile.getUserHandle())
.getHideInSettingsInQuietMode() && profile.isQuietModeEnabled())) {
.getShowInQuietMode() == UserProperties.SHOW_IN_QUIET_MODE_HIDDEN
&& profile.isQuietModeEnabled())) {
updateProfileUi(profile);
}
}