Fix initial focus issues in dialogs and editor

Test: manually launched app on Walleye running P and verified that
keyboard is opened when the create and rename label dialogs are opened.
Also verified that the keyboard remains visible in the editor when
the screen is rotated with an input field focused.

Bug: 77244371
Bug: 77246197
Change-Id: I66638bfae9e17986773395624e3cccc75c95eb10
diff --git a/res/layout/group_name_edit_dialog.xml b/res/layout/group_name_edit_dialog.xml
index 94db3dd..333ac43 100644
--- a/res/layout/group_name_edit_dialog.xml
+++ b/res/layout/group_name_edit_dialog.xml
@@ -27,6 +27,9 @@
     app:errorEnabled="true"
     app:hintEnabled="false">
 
+    <!-- In Android P there is no initial focus by default in touch mode. See b/77244371 -->
+    <requestFocus />
+
     <android.support.design.widget.TextInputEditText
         android:id="@android:id/text1"
         android:layout_width="match_parent"
@@ -39,4 +42,4 @@
         android:minHeight="@dimen/dialog_edit_text_min_height"
         android:textAlignment="viewStart"
         android:singleLine="true"/>
-</android.support.design.widget.TextInputLayout>
\ No newline at end of file
+</android.support.design.widget.TextInputLayout>