Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Unified Diff: remoting/android/java/src/org/chromium/chromoting/Desktop.java

Issue 135353002: Add Disconnect menu-item to Android Chromoting client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/resources/menu/desktop_actionbar.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/android/java/src/org/chromium/chromoting/Desktop.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/Desktop.java b/remoting/android/java/src/org/chromium/chromoting/Desktop.java
index b1f18e54a15e8333f78db48d5d70419182244981..c3131a867e31f54953d01b9be2411584efb720fe 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);
}
« no previous file with comments | « no previous file | remoting/resources/menu/desktop_actionbar.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698