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

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

Issue 943103002: Android Chromoting: Remove title and add navigation button to disconnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « remoting/android/java/res/values-v17/styles.xml ('k') | no next file » | 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 a7762fa7610ad3aa0ba4c5b526aab3cc3b3660d9..7135492743d024b9ea8c8791052d2e45f86bef06 100644
--- a/remoting/android/java/src/org/chromium/chromoting/Desktop.java
+++ b/remoting/android/java/src/org/chromium/chromoting/Desktop.java
@@ -51,7 +51,11 @@ public class Desktop extends ActionBarActivity implements View.OnSystemUiVisibil
mOverlayButton = (ImageButton) findViewById(R.id.desktop_overlay_button);
mRemoteHostDesktop.setDesktop(this);
- // Ensure the button is initially hidden.
+ // For this Activity, the home button in the action bar acts as a Disconnect button, so
+ // set the description for accessibility/screen readers.
+ getSupportActionBar().setHomeActionContentDescription(R.string.disconnect_myself_button);
+
+ // Ensure the overlay button is initially hidden.
showActionBar();
View decorView = getWindow().getDecorView();
@@ -193,7 +197,7 @@ public class Desktop extends ActionBarActivity implements View.OnSystemUiVisibil
hideActionBar();
return true;
}
- if (id == R.id.actionbar_disconnect) {
+ if (id == R.id.actionbar_disconnect || id == android.R.id.home) {
JniInterface.disconnectFromHost();
return true;
}
« no previous file with comments | « remoting/android/java/res/values-v17/styles.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698