fdo#60487 - sdremote - load default preferences eg. volume control switch.

This commit is contained in:
Michael Meeks
2013-02-08 14:53:47 +00:00
parent 2e14a8bf03
commit a75aeb5cef

View File

@@ -58,6 +58,10 @@ public class PresentationActivity extends SherlockFragmentActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// bind preference defaults
PreferenceManager.setDefaultValues(this, R.xml.preferences,
false /* retain user settings */);
mBroadcastProcessor = new ActivityChangeBroadcastProcessor(this);
bindService(new Intent(this, CommunicationService.class), mConnection,