void (boolean isBackgroundMode) { if (myIsBackgroundMode == isBackgroundMode) { return; } myIsBackgroundMode = isBackgroundMode; if (isBackgroundMode) { doEnableBackgroundMode(); } else { doDisableBackgroundMode(); } }