Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6eae13b authored by Aditya's avatar Aditya
Browse files

Add SdkLevel V check in onProfileActionStatusChange.

Bug: 344827852
Test: Manual
Change-Id: Idbd7ec7edb516c2c11d255f35579d0760ba9a496
parent 674ace67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -265,7 +265,7 @@ public class DocumentsApplication extends Application {
            } else if (PROFILE_FILTER_ACTIONS.contains(action)) {
                // Make the changes to UserManagerState object before calling providers updateAsync
                // so that providers for all the users are loaded
                if (getConfigStore().isPrivateSpaceInDocsUIEnabled() && SdkLevel.isAtLeastS()) {
                if (getConfigStore().isPrivateSpaceInDocsUIEnabled() && SdkLevel.isAtLeastV()) {
                    UserHandle userHandle = intent.getParcelableExtra(Intent.EXTRA_USER);
                    UserId userId = UserId.of(userHandle);
                    getUserManagerState(context).onProfileActionStatusChange(action, userId);
+1 −0
Original line number Diff line number Diff line
@@ -235,6 +235,7 @@ public interface UserManagerState {
        @Override
        @SuppressLint("NewApi")
        public void onProfileActionStatusChange(String action, UserId userId) {
            if (!SdkLevel.isAtLeastV()) return;
            UserProperties userProperties = mUserManager.getUserProperties(
                    UserHandle.of(userId.getIdentifier()));
            if (userProperties.getShowInQuietMode() != UserProperties.SHOW_IN_QUIET_MODE_HIDDEN) {