summaryrefslogtreecommitdiffstats
path: root/remoting/android
diff options
context:
space:
mode:
authorlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-13 16:28:02 +0000
committerlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-13 16:28:02 +0000
commit61a980054a1115cdf9736eb47defe2382e9e74fc (patch)
tree2e26189bf8fc323ce4802147ebc132523a77f32c /remoting/android
parenta27a00e38fc32ea08d7e3e7e672618e1edc2e871 (diff)
downloadchromium_src-61a980054a1115cdf9736eb47defe2382e9e74fc.zip
chromium_src-61a980054a1115cdf9736eb47defe2382e9e74fc.tar.gz
chromium_src-61a980054a1115cdf9736eb47defe2382e9e74fc.tar.bz2
Add Disconnect menu-item to Android Chromoting client
BUG=333129 Review URL: https://codereview.chromium.org/135353002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/android')
-rw-r--r--remoting/android/java/src/org/chromium/chromoting/Desktop.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/remoting/android/java/src/org/chromium/chromoting/Desktop.java b/remoting/android/java/src/org/chromium/chromoting/Desktop.java
index b1f18e5..c3131a8 100644
--- a/remoting/android/java/src/org/chromium/chromoting/Desktop.java
+++ b/remoting/android/java/src/org/chromium/chromoting/Desktop.java
@@ -60,6 +60,9 @@ public class Desktop extends Activity {
case R.id.actionbar_hide:
getActionBar().hide();
return true;
+ case R.id.actionbar_disconnect:
+ JniInterface.disconnectFromHost();
+ return true;
default:
return super.onOptionsItemSelected(item);
}