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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/firstrun/AccountFirstRunView.java

Issue 1078273002: Remove unnecesary ApiCompatibilityUtils calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: newt's comments Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.firstrun; 5 package org.chromium.chrome.browser.firstrun;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.graphics.Bitmap; 8 import android.graphics.Bitmap;
9 import android.graphics.Color; 9 import android.graphics.Color;
10 import android.text.TextUtils; 10 import android.text.TextUtils;
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 } 429 }
430 430
431 /** 431 /**
432 * Updates the view to show that sign in has completed. 432 * Updates the view to show that sign in has completed.
433 */ 433 */
434 public void switchToSignedMode() { 434 public void switchToSignedMode() {
435 mSignedIn = true; 435 mSignedIn = true;
436 updateProfileName(); 436 updateProfileName();
437 437
438 mSpinner.setEnabled(false); 438 mSpinner.setEnabled(false);
439 ApiCompatibilityUtils.setBackgroundForView(mSpinner, null); 439 mSpinner.setBackground(null);
440 mPositiveButton.setText(getResources().getText(R.string.fre_done)); 440 mPositiveButton.setText(getResources().getText(R.string.fre_done));
441 mPositiveButton.setOnClickListener(new OnClickListener() { 441 mPositiveButton.setOnClickListener(new OnClickListener() {
442 @Override 442 @Override
443 public void onClick(View v) { 443 public void onClick(View v) {
444 mListener.onSigningInCompleted(mAccountName); 444 mListener.onSigningInCompleted(mAccountName);
445 } 445 }
446 }); 446 });
447 mNegativeButton.setText(getResources().getText(R.string.fre_settings)); 447 mNegativeButton.setText(getResources().getText(R.string.fre_settings));
448 mNegativeButton.setOnClickListener(new OnClickListener() { 448 mNegativeButton.setOnClickListener(new OnClickListener() {
449 @Override 449 @Override
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 public boolean isInForcedAccountMode() { 494 public boolean isInForcedAccountMode() {
495 return mForcedAccountName != null; 495 return mForcedAccountName != null;
496 } 496 }
497 497
498 @Override 498 @Override
499 public void onPositionChanged(int i) { 499 public void onPositionChanged(int i) {
500 mPositionSetProgrammatically = true; 500 mPositionSetProgrammatically = true;
501 mSpinner.setSelection(i); 501 mSpinner.setSelection(i);
502 } 502 }
503 } 503 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698