Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 391002fa authored by Gary Mai's avatar Gary Mai Committed by Android (Google) Code Review
Browse files

Merge "Focus on name field and show keyboard when inserting contact" into ub-contactsdialer-i-dev

parents 9f691e8b befbd85a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -382,8 +382,7 @@
        <!-- Edit or create a contact with only the most important fields displayed initially. -->
        <activity
            android:name=".activities.ContactEditorActivity"
            android:theme="@style/EditorActivityTheme"
            android:windowSoftInputMode="stateHidden|adjustResize">
            android:theme="@style/EditorActivityTheme">

            <intent-filter>
                <action android:name="android.intent.action.INSERT"/>
+8 −0
Original line number Diff line number Diff line
@@ -497,6 +497,14 @@ public class RawContactEditorView extends LinearLayout implements View.OnClickLi
            addReadOnlyRawContactEditorViews();
        } else {
            setupEditorNormally();
            // If we're inserting a new contact, request focus to bring up the keyboard for the
            // name field.
            if (mHasNewContact) {
                final StructuredNameEditorView name = getNameEditorView();
                if (name != null) {
                    name.requestFocusForFirstEditField();
                }
            }
        }
        if (mListener != null) mListener.onEditorsBound();
    }