Loading res/layout-land/compact_contact_editor_fragment.xml +7 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,13 @@ <include layout="@layout/compact_photo_editor_view" /> <!-- Dummy view so the first input field is not initially focused. b/21644158 --> <View android:layout_width="0dp" android:layout_height="0dp" android:focusable="true" android:focusableInTouchMode="true"/> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" Loading res/layout/compact_contact_editor_fragment.xml +7 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,13 @@ <include layout="@layout/compact_photo_editor_view" /> <!-- Dummy view so the first input field is not initially focused. b/21644158 --> <View android:layout_width="0dp" android:layout_height="0dp" android:focusable="true" android:focusableInTouchMode="true"/> <include layout="@layout/compact_contact_editor_fields" /> </com.android.contacts.editor.CompactRawContactsEditorView> Loading res/layout/raw_contact_editor_view.xml +7 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,13 @@ android:layout_height="wrap_content" android:orientation="vertical" > <!-- Dummy view so the first input field is not initially focused. b/21644158 --> <View android:layout_width="0dp" android:layout_height="0dp" android:focusable="true" android:focusableInTouchMode="true"/> <include android:id="@+id/edit_name" layout="@layout/structured_name_editor_view" /> Loading src/com/android/contacts/editor/ContactEditorBaseFragment.java +0 −5 Original line number Diff line number Diff line Loading @@ -373,9 +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 the name editor should receive focus after being bound protected boolean mRequestFocus; // 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; Loading Loading @@ -1155,7 +1152,6 @@ abstract public class ContactEditorBaseFragment extends Fragment implements RawContactDelta oldState, AccountType oldAccountType) { mStatus = Status.EDITING; mState.add(createNewRawContactDelta(account, accountType, oldState, oldAccountType)); mRequestFocus = true; mNewContactDataReady = true; bindEditors(); } Loading Loading @@ -1233,7 +1229,6 @@ abstract public class ContactEditorBaseFragment extends Fragment implements mState.add(createLocalRawContactDelta()); } } mRequestFocus = true; mExistingContactDataReady = true; bindEditors(); } Loading src/com/android/contacts/editor/ContactEditorFragment.java +0 −6 Original line number Diff line number Diff line Loading @@ -292,10 +292,6 @@ public class ContactEditorFragment extends ContactEditorBaseFragment implements }; final StructuredNameEditorView nameEditor = rawContactEditor.getNameEditor(); if (mRequestFocus) { nameEditor.requestFocus(); mRequestFocus = false; } nameEditor.setEditorListener(structuredNameListener); if (!TextUtils.isEmpty(mDefaultDisplayName)) { nameEditor.setDisplayName(mDefaultDisplayName); Loading @@ -311,8 +307,6 @@ public class ContactEditorFragment extends ContactEditorBaseFragment implements } } mRequestFocus = false; setGroupMetaData(); // Show editor now that we've loaded state Loading Loading
res/layout-land/compact_contact_editor_fragment.xml +7 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,13 @@ <include layout="@layout/compact_photo_editor_view" /> <!-- Dummy view so the first input field is not initially focused. b/21644158 --> <View android:layout_width="0dp" android:layout_height="0dp" android:focusable="true" android:focusableInTouchMode="true"/> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" Loading
res/layout/compact_contact_editor_fragment.xml +7 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,13 @@ <include layout="@layout/compact_photo_editor_view" /> <!-- Dummy view so the first input field is not initially focused. b/21644158 --> <View android:layout_width="0dp" android:layout_height="0dp" android:focusable="true" android:focusableInTouchMode="true"/> <include layout="@layout/compact_contact_editor_fields" /> </com.android.contacts.editor.CompactRawContactsEditorView> Loading
res/layout/raw_contact_editor_view.xml +7 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,13 @@ android:layout_height="wrap_content" android:orientation="vertical" > <!-- Dummy view so the first input field is not initially focused. b/21644158 --> <View android:layout_width="0dp" android:layout_height="0dp" android:focusable="true" android:focusableInTouchMode="true"/> <include android:id="@+id/edit_name" layout="@layout/structured_name_editor_view" /> Loading
src/com/android/contacts/editor/ContactEditorBaseFragment.java +0 −5 Original line number Diff line number Diff line Loading @@ -373,9 +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 the name editor should receive focus after being bound protected boolean mRequestFocus; // 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; Loading Loading @@ -1155,7 +1152,6 @@ abstract public class ContactEditorBaseFragment extends Fragment implements RawContactDelta oldState, AccountType oldAccountType) { mStatus = Status.EDITING; mState.add(createNewRawContactDelta(account, accountType, oldState, oldAccountType)); mRequestFocus = true; mNewContactDataReady = true; bindEditors(); } Loading Loading @@ -1233,7 +1229,6 @@ abstract public class ContactEditorBaseFragment extends Fragment implements mState.add(createLocalRawContactDelta()); } } mRequestFocus = true; mExistingContactDataReady = true; bindEditors(); } Loading
src/com/android/contacts/editor/ContactEditorFragment.java +0 −6 Original line number Diff line number Diff line Loading @@ -292,10 +292,6 @@ public class ContactEditorFragment extends ContactEditorBaseFragment implements }; final StructuredNameEditorView nameEditor = rawContactEditor.getNameEditor(); if (mRequestFocus) { nameEditor.requestFocus(); mRequestFocus = false; } nameEditor.setEditorListener(structuredNameListener); if (!TextUtils.isEmpty(mDefaultDisplayName)) { nameEditor.setDisplayName(mDefaultDisplayName); Loading @@ -311,8 +307,6 @@ public class ContactEditorFragment extends ContactEditorBaseFragment implements } } mRequestFocus = false; setGroupMetaData(); // Show editor now that we've loaded state Loading