diff --git a/extras/pandroid_event_viewer/ChangeLog b/extras/pandroid_event_viewer/ChangeLog index 509af55962..307d4d12e6 100644 --- a/extras/pandroid_event_viewer/ChangeLog +++ b/extras/pandroid_event_viewer/ChangeLog @@ -1,3 +1,10 @@ +2013-12-05 Miguel de Dios + + * src/pandroid_event_viewer/pandorafms/Options.java: fixed the save + state of check in background, before it run but didn't show. + + * res/layout/main.xml: added id for the tag. + 2013-12-05 Miguel de Dios * src/pandroid_event_viewer/pandorafms/Info.java, diff --git a/extras/pandroid_event_viewer/res/layout/main.xml b/extras/pandroid_event_viewer/res/layout/main.xml index ce91957926..15c8f2c9e5 100644 --- a/extras/pandroid_event_viewer/res/layout/main.xml +++ b/extras/pandroid_event_viewer/res/layout/main.xml @@ -182,6 +182,7 @@ android:layout_gravity="center_vertical" android:layout_weight="1" android:paddingRight="5dip" + android:id="@+id/tag_textview" android:text="@string/tag_label_str" /> adapter = ArrayAdapter.createFromResource( @@ -108,7 +111,6 @@ public class Options extends Activity { int key_seconds = this.timeout2arrayKey(preferences.getInt("timeout_connections", 10)); combo.setSelection(key_seconds); - ((CheckBox) findViewById(R.id.background_service_on)).setChecked(true); final Button button = (Button) findViewById(R.id.update_options); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { @@ -124,7 +126,7 @@ public class Options extends Activity { // Notification boolean vibration = preferences.getBoolean("vibration", true); - CheckBox cb = (CheckBox) findViewById(R.id.vibration_on); + cb = (CheckBox) findViewById(R.id.vibration_on); cb.setChecked(vibration); boolean led = preferences.getBoolean("led", false); cb = (CheckBox) findViewById(R.id.led_flash_on); @@ -286,9 +288,12 @@ public class Options extends Activity { editorPreferences.putInt("timeout_connections", arrayKey2timeout(combo.getSelectedItemPosition())); + CheckBox cb = (CheckBox) findViewById(R.id.background_service_on); + editorPreferences.putBoolean("background_service", cb.isChecked()); + // Notification settings - CheckBox cb = (CheckBox) findViewById(R.id.vibration_on); + cb = (CheckBox) findViewById(R.id.vibration_on); editorPreferences.putBoolean("vibration", cb.isChecked()); cb = (CheckBox) findViewById(R.id.led_flash_on); editorPreferences.putBoolean("led", cb.isChecked());