Rename trySetQuietModeEnabled to requestQuietModeEnabled as per ...
the feedback from API council Fix: 71818127 Test: Build Change-Id: Iab976fefcf00e0d5abada123b7c19344241b928a
This commit is contained in:
@@ -129,7 +129,7 @@ public class ManagedProfileSettings extends SettingsPreferenceFragment
|
|||||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||||
if (preference == mWorkModePreference) {
|
if (preference == mWorkModePreference) {
|
||||||
boolean quietModeEnabled = !(boolean) newValue;
|
boolean quietModeEnabled = !(boolean) newValue;
|
||||||
mUserManager.trySetQuietModeEnabled(quietModeEnabled, mManagedUser);
|
mUserManager.requestQuietModeEnabled(quietModeEnabled, mManagedUser);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (preference == mContactPrefrence) {
|
if (preference == mContactPrefrence) {
|
||||||
|
@@ -91,7 +91,7 @@ public class WorkModeCondition extends Condition {
|
|||||||
public void onActionClick(int index) {
|
public void onActionClick(int index) {
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
if (mUserHandle != null) {
|
if (mUserHandle != null) {
|
||||||
mUm.trySetQuietModeEnabled(false, mUserHandle);
|
mUm.requestQuietModeEnabled(false, mUserHandle);
|
||||||
}
|
}
|
||||||
setActive(false);
|
setActive(false);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user