Remove the annoying focus highlight on the streaming button. Hide the keyboard on the connect screen.

This commit is contained in:
Cameron Gutman 2014-03-26 00:13:23 -04:00
parent ea57e48ed5
commit 669691d8e8
2 changed files with 4 additions and 2 deletions

View File

@ -30,8 +30,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/hostTextView" android:layout_below="@+id/hostTextView"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:text="Start Streaming Steam!" > android:text="Start Streaming Steam!" >
<requestFocus /> <requestFocus />

View File

@ -15,6 +15,7 @@ import com.limelight.nvstream.http.NvHTTP;
import android.os.Bundle; import android.os.Bundle;
import android.view.View; import android.view.View;
import android.view.View.OnClickListener; import android.view.View.OnClickListener;
import android.view.WindowManager;
import android.widget.Button; import android.widget.Button;
import android.widget.CompoundButton; import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener; import android.widget.CompoundButton.OnCheckedChangeListener;
@ -52,6 +53,9 @@ public class Connection extends Activity {
setContentView(R.layout.activity_connection); 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.statusButton = (Button) findViewById(R.id.statusButton);
this.pairButton = (Button) findViewById(R.id.pairButton); this.pairButton = (Button) findViewById(R.id.pairButton);
this.hostText = (TextView) findViewById(R.id.hostTextView); this.hostText = (TextView) findViewById(R.id.hostTextView);