Skip to content

Commit

Permalink
Fix: Fixed test of preference allowed state for dual sim notification…
Browse files Browse the repository at this point in the history
… tone profile parameter. (2)
  • Loading branch information
henrichg committed Jul 20, 2024
1 parent 88e838d commit 54bdd93
Showing 1 changed file with 21 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2622,23 +2622,30 @@ static void isProfilePreferenceAllowed_PREF_PROFILE_SOUND_NOTIFICATION_CHANGE_SI
preferenceAllowed.allowed = PREFERENCE_NOT_ALLOWED;
preferenceAllowed.notAllowedReason = PREFERENCE_NOT_ALLOWED_SETTINGS_NOT_FOUND;
}
} else
if ((!rootRequired) && ppppsInstalled) {
if (profile != null) {
if ((profile._soundNotificationChangeSIM1 != 0) ||
(profile._soundNotificationChangeSIM2 != 0))
preferenceAllowed.allowed = PREFERENCE_ALLOWED;
} else
preferenceAllowed.allowed = PREFERENCE_ALLOWED;
} else {
if (profile != null) {
if ((profile._soundNotificationChangeSIM1 != 0) ||
(profile._soundNotificationChangeSIM2 != 0)) {
preferenceAllowed.notAllowedPPPPS = true;
if (rootRequired) {
preferenceAllowed.allowed = PREFERENCE_NOT_ALLOWED;
preferenceAllowed.notAllowedReason = PREFERENCE_NOT_ALLOWED_NOT_ROOTED;
} else {
if (ppppsInstalled) {
if (profile != null) {
if ((profile._soundNotificationChangeSIM1 != 0) ||
(profile._soundNotificationChangeSIM2 != 0))
preferenceAllowed.allowed = PREFERENCE_ALLOWED;
} else
preferenceAllowed.allowed = PREFERENCE_ALLOWED;
}
else {
if (profile != null) {
if ((profile._soundNotificationChangeSIM1 != 0) ||
(profile._soundNotificationChangeSIM2 != 0)) {
preferenceAllowed.notAllowedPPPPS = true;
}
}
preferenceAllowed.allowed = PREFERENCE_NOT_ALLOWED;
preferenceAllowed.notAllowedReason = PREFERENCE_NOT_ALLOWED_NOT_INSTALLED_PPPPS;
}
}
preferenceAllowed.allowed = PREFERENCE_NOT_ALLOWED;
preferenceAllowed.notAllowedReason = PREFERENCE_NOT_ALLOWED_NOT_INSTALLED_PPPPS;
}
} else {
preferenceAllowed.allowed = PREFERENCE_NOT_ALLOWED;
Expand Down

0 comments on commit 54bdd93

Please sign in to comment.