Skip to content

Commit

Permalink
bella: fix small stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ujwalp15 committed Apr 1, 2017
1 parent cfffe8b commit f731696
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/example/android/Bella/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,6 @@ public void run() {
startActivity(i,compat.toBundle());
}
}, 2500);
} else if (txt.contains("feeling")) {
tts.speak("Never been better!", TextToSpeech.QUEUE_FLUSH, null);
} else if (txt.contains("weather")) {
if(isNetworkAvailable()==0) {
tts.speak("It seems like internet connection is unavailable so I am unable to fetch weather report", TextToSpeech.QUEUE_FLUSH, null);
Expand Down Expand Up @@ -995,6 +993,8 @@ public void run() {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.youtube.com/results?search_query="+s)));
}
}
} else if (txt.contains("feeling") && txt.contains("you")) {
tts.speak("Never been better!", TextToSpeech.QUEUE_FLUSH, null);
} else if (txt.contains("your") && txt.contains("food")) {
tts.speak("I don't eat much, but when I do, I take megabytes!", TextToSpeech.QUEUE_FLUSH, null);
} else if (txt.contains("your") && txt.contains("car")) {
Expand Down

0 comments on commit f731696

Please sign in to comment.