[Android] Preferences: remove unneeded cast
Edward Wang
git at videolan.org
Wed Jul 16 18:49:37 CEST 2014
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Wed Jul 16 12:49:14 2014 -0400| [2fd621d342d957f4495a14ca3da066e41f52f02f] | committer: Edward Wang
Preferences: remove unneeded cast
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=2fd621d342d957f4495a14ca3da066e41f52f02f
---
vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
index 7050cd3..d2f631b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
@@ -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;
}
More information about the Android
mailing list