Commit 2fd621d3 authored by Edward Wang's avatar Edward Wang
Browse files

Preferences: remove unneeded cast

parent cf55343b
......@@ -98,12 +98,11 @@ public class PreferencesActivity extends PreferenceActivity implements OnSharedP
});
// Headset detection option
CheckBoxPreference checkboxHS = (CheckBoxPreference) findPreference("enable_headset_detection");
final CheckBoxPreference checkboxHS = (CheckBoxPreference) findPreference("enable_headset_detection");
checkboxHS.setOnPreferenceClickListener(
new OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(Preference preference) {
CheckBoxPreference checkboxHS = (CheckBoxPreference) preference;
AudioServiceController.getInstance().detectHeadset(checkboxHS.isChecked());
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment