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

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

Issue 22657003: Fix crash when app is not yet authorized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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/AndroidManifest.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/Chromoting.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/Chromoting.java b/remoting/android/java/src/org/chromium/chromoting/Chromoting.java
index e3225503caf5c6b352c241cd8eb184250116f853..07d896ff1e9d2cb7b489e3d16f55713d3896a366 100644
--- a/remoting/android/java/src/org/chromium/chromoting/Chromoting.java
+++ b/remoting/android/java/src/org/chromium/chromoting/Chromoting.java
@@ -146,7 +146,7 @@ public class Chromoting extends Activity {
mAccountSwitcher = menu.findItem(R.id.actionbar_accountswitcher);
Account[] usableAccounts = AccountManager.get(this).getAccountsByType(ACCOUNT_TYPE);
- if (usableAccounts.length == 1 && mAccount.equals(usableAccounts[0])) {
+ if (usableAccounts.length == 1 && usableAccounts[0].equals(mAccount)) {
// If we're using the only available account, don't offer account switching.
// (If there are *no* accounts available, clicking this allows you to add a new one.)
mAccountSwitcher.setEnabled(false);
« no previous file with comments | « remoting/android/java/AndroidManifest.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698