Remove copy and paste menu items (they are now handled by SupportActionBar) and creat...
[PrivacyBrowser.git] / app / src / main / res / layout / activity_webview.xml
index 93cab6545d4c3d507e0009acad00bd703d4279d7..f50c39956a040b144652346e8038e0b82028b638 100644 (file)
   You should have received a copy of the GNU General Public License
   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
 
+<!-- Setting the layout root to be focusableInTouchMode prevents urlTextBox from stealing focus on launch and opening the keyboard. -->
 <RelativeLayout
     android:id="@+id/rootRelativeLayout"
     xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_width="match_parent"
-    android:layout_height="match_parent" >
+    android:layout_height="match_parent"
+    android:focusableInTouchMode="true" >
 
     <android.support.v7.widget.Toolbar
         android:id="@+id/appBar"