diff --git a/src/com/android/contacts/activities/ContactEditorAccountsChangedActivity.java b/src/com/android/contacts/activities/ContactEditorAccountsChangedActivity.java index c0d71d774ce3efd1173bfa558ac0d8e756f06a74..d6b485dfb6f416158f047aac044de69432b1acfb 100644 --- a/src/com/android/contacts/activities/ContactEditorAccountsChangedActivity.java +++ b/src/com/android/contacts/activities/ContactEditorAccountsChangedActivity.java @@ -171,34 +171,10 @@ public class ContactEditorAccountsChangedActivity extends Activity } }); } else { - // If the user has 0 writable accounts, we will just show the user a message with 2 - // possible action buttons. - view = View.inflate(this, - R.layout.contact_editor_accounts_changed_activity_with_text, null); - - final TextView textView = (TextView) view.findViewById(R.id.text); - final Button leftButton = (Button) view.findViewById(R.id.left_button); - final Button rightButton = (Button) view.findViewById(R.id.right_button); - - textView.setText(getString(R.string.contact_editor_prompt_zero_accounts)); - - // This button allows the user to continue editing the contact as a phone-only - // local contact. - leftButton.setText(getString(android.R.string.cancel)); - leftButton.setOnClickListener(new OnClickListener() { - @Override - public void onClick(View v) { - // Remember that the user wants to create local contacts, so the user is not - // prompted again with this activity. - saveAccountAndReturnResult(AccountWithDataSet.getNullAccount()); - finish(); - } - }); - - // This button allows the user to add a new account to the device and return to - // this app afterwards. - rightButton.setText(getString(R.string.add_account)); - rightButton.setOnClickListener(mAddAccountClickListener); + // If the user has 0 writable accounts, default to device contact + view = new View(this); + saveAccountAndReturnResult(AccountWithDataSet.getNullAccount()); + finish(); } if (mDialog != null && mDialog.isShowing()) {