diff options
author | John Reck <jreck@google.com> | 2011-04-27 15:32:10 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-04-27 15:37:38 -0700 |
commit | 12472f6e50bae508cdbc63fed0e11ad21daeabcf (patch) | |
tree | 04767fdd2669b7e954a8b9fed93752f455ef446c /src/com/android/browser | |
parent | 119bfb0eb2ffbc063bdae3ce4c21e8fc29bae6bf (diff) | |
download | packages_apps_Browser-12472f6e50bae508cdbc63fed0e11ad21daeabcf.zip packages_apps_Browser-12472f6e50bae508cdbc63fed0e11ad21daeabcf.tar.gz packages_apps_Browser-12472f6e50bae508cdbc63fed0e11ad21daeabcf.tar.bz2 |
Autologin layout for phones
Change-Id: I34453e4709c094c4a6647d7ed254949bf33a3018
Diffstat (limited to 'src/com/android/browser')
-rw-r--r-- | src/com/android/browser/TitleBarBase.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/browser/TitleBarBase.java b/src/com/android/browser/TitleBarBase.java index d720257..284fe12 100644 --- a/src/com/android/browser/TitleBarBase.java +++ b/src/com/android/browser/TitleBarBase.java @@ -89,7 +89,7 @@ public class TitleBarBase extends RelativeLayout protected Button mAutoLoginLogin; protected ProgressBar mAutoLoginProgress; protected TextView mAutoLoginError; - protected ImageButton mAutoLoginCancel; + protected View mAutoLoginCancel; protected DeviceAccountLogin mAutoLoginHandler; protected ArrayAdapter<String> mAccountsAdapter; protected boolean mUseQuickControls; @@ -128,7 +128,7 @@ public class TitleBarBase extends RelativeLayout mAutoLoginLogin.setOnClickListener(this); mAutoLoginProgress = (ProgressBar) findViewById(R.id.autologin_progress); mAutoLoginError = (TextView) findViewById(R.id.autologin_error); - mAutoLoginCancel = (ImageButton) mAutoLogin.findViewById(R.id.autologin_close); + mAutoLoginCancel = mAutoLogin.findViewById(R.id.autologin_close); mAutoLoginCancel.setOnClickListener(this); } @@ -349,7 +349,7 @@ public class TitleBarBase extends RelativeLayout mAutoLoginAccount.setSelection(0); mAutoLoginAccount.setEnabled(true); mAutoLoginLogin.setEnabled(true); - mAutoLoginProgress.setVisibility(View.GONE); + mAutoLoginProgress.setVisibility(View.INVISIBLE); mAutoLoginError.setVisibility(View.GONE); switch (login.getState()) { case DeviceAccountLogin.PROCESSING: @@ -358,7 +358,7 @@ public class TitleBarBase extends RelativeLayout mAutoLoginProgress.setVisibility(View.VISIBLE); break; case DeviceAccountLogin.FAILED: - mAutoLoginProgress.setVisibility(View.GONE); + mAutoLoginProgress.setVisibility(View.INVISIBLE); mAutoLoginError.setVisibility(View.VISIBLE); break; case DeviceAccountLogin.INITIAL: @@ -420,7 +420,7 @@ public class TitleBarBase extends RelativeLayout public void loginFailed() { mAutoLoginAccount.setEnabled(true); mAutoLoginLogin.setEnabled(true); - mAutoLoginProgress.setVisibility(View.GONE); + mAutoLoginProgress.setVisibility(View.INVISIBLE); mAutoLoginError.setVisibility(View.VISIBLE); } |