Skip to content

Commit

Permalink
fixed wrong button casts
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanDesi committed Apr 26, 2015
1 parent d1b924c commit 7b8deee
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import android.speech.RecognizerIntent;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.Toast;

import com.google.android.gms.common.ConnectionResult;
Expand All @@ -50,17 +51,17 @@ public class WearActivity extends Activity {
private static final int VOICE_RECOGNITION_REQUEST_CODE = 1001;
private GoogleApiClient apiClient;
private String remoteNodeId;
private Button mbtSpeak, mbtRight, mbtLeft, mbtWalk;
private ImageButton mbtSpeak, mbtRight, mbtLeft, mbtWalk;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main_activity);

mbtSpeak = (Button) findViewById(R.id.btSpeak);
mbtLeft = (Button) findViewById(R.id.btLeftSpin);
mbtRight = (Button) findViewById(R.id.btRightSpin);
mbtWalk = (Button) findViewById(R.id.btWalk);
mbtSpeak = (ImageButton) findViewById(R.id.btSpeak);
mbtLeft = (ImageButton) findViewById(R.id.btLeftSpin);
mbtRight = (ImageButton) findViewById(R.id.btRightSpin);
mbtWalk = (ImageButton) findViewById(R.id.btWalk);

apiClient = apiClientFactory();
checkVoiceRecognition();
Expand Down Expand Up @@ -156,8 +157,6 @@ void showToastMessage(String message){
Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
}



@Override
protected void onResume() {
super.onResume();
Expand Down

0 comments on commit 7b8deee

Please sign in to comment.