Loading src/com/android/contacts/editor/CompactContactEditorFragment.java +2 −5 Original line number Diff line number Diff line Loading @@ -345,12 +345,9 @@ public class CompactContactEditorFragment extends ContactEditorBaseFragment impl if (isInsert) { // For inserts, prevent any changes from being saved when the base fragment is destroyed mStatus = Status.CLOSING; } else { // Prevent a Toast from being displayed as we transition to the full editor mShowToastAfterSave = false; } else if (hasPendingChanges()) { // Save whatever is in the form save(SaveMode.RELOAD, /* backPressed =*/ false); save(SaveMode.CLOSE, /* backPressed =*/ false); } // Prepare an Intent to start the expanded editor Loading src/com/android/contacts/editor/CompactRawContactsEditorView.java +0 −7 Original line number Diff line number Diff line Loading @@ -174,13 +174,6 @@ public class CompactRawContactsEditorView extends LinearLayout implements View.O @Override public void onClick(View view) { if (view.getId() == R.id.more_fields && mListener != null ) { // We mark the name that was displayed as super primary before expanding // so that a save on the expanded editor (without a name change) does not // cause the displayed name to change. if (mNameValuesDelta != null) { mNameValuesDelta.setSuperPrimary(true); } mListener.onExpandEditor(); } } Loading src/com/android/contacts/editor/ContactEditorBaseFragment.java +1 −5 Original line number Diff line number Diff line Loading @@ -373,10 +373,6 @@ abstract public class ContactEditorBaseFragment extends Fragment implements // Used to pre-populate the editor with a display name when a user edits a read-only contact. protected String mDefaultDisplayName; // Whether to show a Toast message after saves have completed. // Does not affect successful toasts shown after joins, which are never displayed. protected boolean mShowToastAfterSave = true; /** * The contact data loader listener. */ Loading Loading @@ -1343,7 +1339,7 @@ abstract public class ContactEditorBaseFragment extends Fragment implements Uri contactLookupUri, Bundle updatedPhotos, boolean backPressed, long photoId) { if (hadChanges) { if (saveSucceeded) { if (saveMode != SaveMode.JOIN && mShowToastAfterSave) { if (saveMode != SaveMode.JOIN) { Toast.makeText(mContext, R.string.contactSavedToast, Toast.LENGTH_SHORT).show(); } } else { Loading Loading
src/com/android/contacts/editor/CompactContactEditorFragment.java +2 −5 Original line number Diff line number Diff line Loading @@ -345,12 +345,9 @@ public class CompactContactEditorFragment extends ContactEditorBaseFragment impl if (isInsert) { // For inserts, prevent any changes from being saved when the base fragment is destroyed mStatus = Status.CLOSING; } else { // Prevent a Toast from being displayed as we transition to the full editor mShowToastAfterSave = false; } else if (hasPendingChanges()) { // Save whatever is in the form save(SaveMode.RELOAD, /* backPressed =*/ false); save(SaveMode.CLOSE, /* backPressed =*/ false); } // Prepare an Intent to start the expanded editor Loading
src/com/android/contacts/editor/CompactRawContactsEditorView.java +0 −7 Original line number Diff line number Diff line Loading @@ -174,13 +174,6 @@ public class CompactRawContactsEditorView extends LinearLayout implements View.O @Override public void onClick(View view) { if (view.getId() == R.id.more_fields && mListener != null ) { // We mark the name that was displayed as super primary before expanding // so that a save on the expanded editor (without a name change) does not // cause the displayed name to change. if (mNameValuesDelta != null) { mNameValuesDelta.setSuperPrimary(true); } mListener.onExpandEditor(); } } Loading
src/com/android/contacts/editor/ContactEditorBaseFragment.java +1 −5 Original line number Diff line number Diff line Loading @@ -373,10 +373,6 @@ abstract public class ContactEditorBaseFragment extends Fragment implements // Used to pre-populate the editor with a display name when a user edits a read-only contact. protected String mDefaultDisplayName; // Whether to show a Toast message after saves have completed. // Does not affect successful toasts shown after joins, which are never displayed. protected boolean mShowToastAfterSave = true; /** * The contact data loader listener. */ Loading Loading @@ -1343,7 +1339,7 @@ abstract public class ContactEditorBaseFragment extends Fragment implements Uri contactLookupUri, Bundle updatedPhotos, boolean backPressed, long photoId) { if (hadChanges) { if (saveSucceeded) { if (saveMode != SaveMode.JOIN && mShowToastAfterSave) { if (saveMode != SaveMode.JOIN) { Toast.makeText(mContext, R.string.contactSavedToast, Toast.LENGTH_SHORT).show(); } } else { Loading