summaryrefslogtreecommitdiffstats
path: root/core/java/android/accounts
diff options
context:
space:
mode:
authorAlexandra Gherghina <alexgherghina@google.com>2014-07-25 13:47:58 +0100
committerAlexandra Gherghina <alexgherghina@google.com>2014-07-28 07:41:40 +0000
commitf7f8fd64c8e8251caaf0d41d07f3bfe9c79e5335 (patch)
treea67e91b40a751ff6de83dffe800fd6560d536aab /core/java/android/accounts
parentab2ed62f15d0dac0f8ef825ff2d3677c9ae18f44 (diff)
downloadframeworks_base-f7f8fd64c8e8251caaf0d41d07f3bfe9c79e5335.zip
frameworks_base-f7f8fd64c8e8251caaf0d41d07f3bfe9c79e5335.tar.gz
frameworks_base-f7f8fd64c8e8251caaf0d41d07f3bfe9c79e5335.tar.bz2
Update string for account manager failures
Bug: 14642886 Change-Id: I200e38c7a93990787a3d6e01a583fe8ba193a987
Diffstat (limited to 'core/java/android/accounts')
-rw-r--r--core/java/android/accounts/CantAddAccountActivity.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/core/java/android/accounts/CantAddAccountActivity.java b/core/java/android/accounts/CantAddAccountActivity.java
index 4ac2beb..f7f232e 100644
--- a/core/java/android/accounts/CantAddAccountActivity.java
+++ b/core/java/android/accounts/CantAddAccountActivity.java
@@ -19,7 +19,6 @@ package android.accounts;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
-import android.widget.TextView;
import com.android.internal.R;
@@ -29,25 +28,11 @@ import com.android.internal.R;
*/
public class CantAddAccountActivity extends Activity {
public static final String EXTRA_ERROR_CODE = "android.accounts.extra.ERROR_CODE";
- public static final int MISSING = -1;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.app_not_authorized);
-
- int errorCode = getIntent().getIntExtra(EXTRA_ERROR_CODE, MISSING);
- if (errorCode != MISSING) {
- TextView errorText = (TextView) findViewById(R.id.description);
- switch (errorCode) {
- case AccountManager.ERROR_CODE_USER_RESTRICTED:
- errorText.setText(R.string.app_no_restricted_accounts);
- break;
- default:
- // TODO: Get better message. See: http://b/14642886
- errorText.setText(R.string.error_message_title);
- }
- }
}
public void onCancelButtonClicked(View view) {