From 669691d8e8ef16837e3e3477686832e607afb9b5 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 26 Mar 2014 00:13:23 -0400 Subject: [PATCH] Remove the annoying focus highlight on the streaming button. Hide the keyboard on the connect screen. --- res/layout/activity_connection.xml | 2 -- src/com/limelight/Connection.java | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/res/layout/activity_connection.xml b/res/layout/activity_connection.xml index 690e657b..d8eabccc 100644 --- a/res/layout/activity_connection.xml +++ b/res/layout/activity_connection.xml @@ -30,8 +30,6 @@ android:layout_height="wrap_content" android:layout_below="@+id/hostTextView" android:layout_centerHorizontal="true" - android:focusable="true" - android:focusableInTouchMode="true" android:text="Start Streaming Steam!" > diff --git a/src/com/limelight/Connection.java b/src/com/limelight/Connection.java index fddd17ca..2b65e5b3 100644 --- a/src/com/limelight/Connection.java +++ b/src/com/limelight/Connection.java @@ -15,6 +15,7 @@ import com.limelight.nvstream.http.NvHTTP; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; +import android.view.WindowManager; import android.widget.Button; import android.widget.CompoundButton; import android.widget.CompoundButton.OnCheckedChangeListener; @@ -52,6 +53,9 @@ public class Connection extends Activity { setContentView(R.layout.activity_connection); + // Hide the keyboard by default + this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); + this.statusButton = (Button) findViewById(R.id.statusButton); this.pairButton = (Button) findViewById(R.id.pairButton); this.hostText = (TextView) findViewById(R.id.hostTextView);