Merge \"Protect against work conditional crash\" into nyc-mr1-dev

am: bd6a4f9066

Change-Id: I6072b6235abb35da9ecac1f41b01cf82e75d868b
This commit is contained in:
Jason Monk
2016-07-20 13:33:57 +00:00
committed by android-build-merger

View File

@@ -90,7 +90,9 @@ public class WorkModeCondition extends Condition {
@Override
public void onActionClick(int index) {
if (index == 0) {
if (mUserHandle != null) {
mUm.trySetQuietModeDisabled(mUserHandle.getIdentifier(), null);
}
setActive(false);
} else {
throw new IllegalArgumentException("Unexpected index " + index);