Kaydet (Commit) a04171c9 authored tarafından Michael Meeks's avatar Michael Meeks

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

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