Commit d7c493ab authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf

Add advanced debugging menu with quit app feature

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent a32513e7
......@@ -24,5 +24,8 @@
android:key="enable_iomx"
android:title="@string/enable_iomx">
</CheckBoxPreference>
<PreferenceScreen android:title="@string/advanced_debugging">
<Preference android:title="Quit Application" android:key="quit_app" android:enabled="true"/>
</PreferenceScreen>
</PreferenceCategory>
</PreferenceScreen>
......@@ -52,6 +52,17 @@ public class PreferencesActivity extends PreferenceActivity {
return true;
}
});
// Attach debugging items
Preference quitAppPref = (Preference) findPreference("quit_app");
quitAppPref.setOnPreferenceClickListener(
new OnPreferenceClickListener() {
public boolean onPreferenceClick(Preference preference) {
System.exit(0);
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