Buggy code:
public class VolumePanel extends Handler implements View . OnClickListener , OnSeekBarChangeListener { private static final String TAG = "VolumePanel" ; private static boolean LOGD = false ; public static final int PLAY_SOUND_DELAY = 300 ; public static final int VIBRATE_DELAY = 300 ; private static final int VIBRATE_DURATION = 300 ; private static final int BEEP_DURATION = 150 ; private static final int MAX_VOLUME = 100 ; private static final int FREE_DELAY = 10000 ; private static final int TIMEOUT_DELAY = 3000 ; private static final int MSG_VOLUME_CHANGED = 0 ; private static final int MSG_FREE_RESOURCES = 1 ; private static final int MSG_PLAY_SOUND = 2 ; private static final int MSG_STOP_SOUNDS = 3 ; private static final int MSG_VIBRATE = 4 ; private static final int MSG_TIMEOUT = 5 ; private static final int MSG_RINGER_MODE_CHANGED = 6 ; protected Context mContext ; private AudioManager mAudioManager ; protected AudioService mAudioService ; private boolean mRingIsSilent ; private boolean mShowCombinedVolumes ; private final Dialog mDialog ; private final View mView ; private final ViewGroup mPanel ; private final ViewGroup mSliderGroup ; private final View mMoreButton ; private final View mDivider ; private int mActiveStreamType = - 1 ; private HashMap < Integer , VolumePanel . StreamControl > mStreamControls ; private Handler mHandler ; class SettingsObserver extends ContentObserver { public SettingsObserver ( Handler handler ) { } void observe ( ) { } @ Override public void onChange ( boolean selfChange ) { } } private enum StreamResources { BluetoothSCOStream ( AudioManager . STREAM_BLUETOOTH_SCO , string . volume_icon_description_bluetooth , drawable . ic_audio_bt , drawable . ic_audio_bt , false ) , RingerStream ( AudioManager . STREAM_RING , string . volume_icon_description_ringer , drawable . ic_audio_ring_notif , drawable . ic_audio_ring_notif_mute , false ) , VoiceStream ( AudioManager . STREAM_VOICE_CALL , string . volume_icon_description_incall , drawable . ic_audio_phone , drawable . ic_audio_phone , false ) , AlarmStream ( AudioManager . STREAM_ALARM , string . volume_alarm , drawable . ic_audio_alarm , drawable . ic_audio_alarm_mute , true ) , MediaStream ( AudioManager . STREAM_MUSIC , string . volume_icon_description_media , drawable . ic_audio_vol , drawable . ic_audio_vol_mute , true ) , NotificationStream ( AudioManager . STREAM_NOTIFICATION , string . volume_icon_description_notification , drawable . ic_audio_notification , drawable . ic_audio_notification_mute , true ) ; int streamType ; int descRes ; int iconRes ; int iconMuteRes ; boolean show ; StreamResources ( int streamType , int descRes , int iconRes , int iconMuteRes , boolean show ) { } } private static final VolumePanel . StreamResources [ ] STREAMS = new VolumePanel . StreamResources [ ] { VolumePanel . StreamResources . BluetoothSCOStream , VolumePanel . StreamResources . RingerStream , VolumePanel . StreamResources . VoiceStream , VolumePanel . StreamResources . MediaStream , VolumePanel . StreamResources . NotificationStream , VolumePanel . StreamResources . AlarmStream } ; private class StreamControl { int streamType ; ViewGroup group ; ImageView icon ; SeekBar seekbarView ; int iconRes ; int iconMuteRes ; } private ToneGenerator [ ] mToneGenerators ; private Vibrator mVibrator ; public VolumePanel ( final Context context , AudioService volumeService ) { } public void updateSettings ( ) { ContentResolver resolver = mContext . getContentResolver ( ) ; <START_BUG> mShowCombinedVolumes = ( System . getInt ( mContext . getContentResolver ( ) , ENABLE_VOLUME_OPTIONS , 0 ) ) == 1 ; <END_BUG> if ( ! ( mShowCombinedVolumes ) ) { mMoreButton . setVisibility ( GONE ) ; mDivider . setVisibility ( GONE ) ; } else { mMoreButton . setOnClickListener ( this ) ; } } private void listenToRingerMode ( ) { } private boolean isMuted ( int streamType ) { } private void createSliders ( ) { } private void reorderSliders ( int activeStreamType ) { } private void addOtherVolumes ( ) { } private void updateSlider ( VolumePanel . StreamControl sc ) { } private boolean isExpanded ( ) { } private void expand ( ) { } private void collapse ( ) { } private void updateStates ( ) { } public void postVolumeChanged ( int streamType , int flags ) { } protected void onVolumeChanged ( int streamType , int flags ) { } protected void onShowVolumeChanged ( int streamType , int flags ) { } protected void onPlaySound ( int streamType , int flags ) { } protected void onStopSounds ( ) { } protected void onVibrate ( ) { } private ToneGenerator getOrCreateToneGenerator ( int streamType ) { } private void setMusicIcon ( int resId , int resMuteId ) { } protected void onFreeResources ( ) { } @ Override public void handleMessage ( Message msg ) { } private void resetTimeout ( ) { } private void forceTimeout ( ) { } public void onProgressChanged ( SeekBar seekBar , int progress , boolean fromUser ) { } public void onStartTrackingTouch ( SeekBar seekBar ) { } public void onStopTrackingTouch ( SeekBar seekBar ) { } public void onClick ( View v ) { } }

Fix:
mShowCombinedVolumes = ( System . getInt ( resolver , ENABLE_VOLUME_OPTIONS , 0 ) ) == 1 ;