summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2012-04-23 12:17:39 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2012-04-23 12:17:39 +0530
commit470731a1d71d95c0830f5f84440e486d98264e0b (patch)
treed7bc98f9e1928e3fb29aba1571dba3d89adbf5a3
parentf23201277c23afe72b173ec4e7c0d7f6590b1c61 (diff)
Switch to remote when selected from the list
-rw-r--r--src/org/pulseaudio/outputswitcher/OutputSwitcher.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/pulseaudio/outputswitcher/OutputSwitcher.java b/src/org/pulseaudio/outputswitcher/OutputSwitcher.java
index 7ad5274..a9d960c 100644
--- a/src/org/pulseaudio/outputswitcher/OutputSwitcher.java
+++ b/src/org/pulseaudio/outputswitcher/OutputSwitcher.java
@@ -64,6 +64,10 @@ public class OutputSwitcher extends ListActivity implements CompoundButton.OnChe
{
EditText text_server = (EditText) findViewById(R.id.text_server);
text_server.setText(((TextView) view).getText().toString());
+
+ Switch sw = (Switch) findViewById(R.id.switch_remote);
+ sw.setChecked(false);
+ sw.setChecked(true);
}
@Override