From 356e9fbe388457166f154f6b17a1b3707e791a37 Mon Sep 17 00:00:00 2001 From: Jo Grimstad Date: Mon, 30 Jan 2017 02:18:48 +0300 Subject: [PATCH 1/2] #362 Select number after hearing pronunciation --- app/src/main/AndroidManifest.xml | 3 + .../content/task/LetterGraphemeActivity.java | 29 ----- .../content/task/NumberGraphemeActivity.java | 35 +----- .../content/task/SelectLetterActivity.java | 3 + .../content/task/SelectNumberActivity.java | 112 +++++++++--------- .../res/layout/activity_select_letter.xml | 2 +- .../res/layout/activity_select_number.xml | 6 +- 7 files changed, 69 insertions(+), 121 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index c2cea6e..dc5f1e7 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -58,6 +58,9 @@ + diff --git a/app/src/main/java/org/literacyapp/content/task/LetterGraphemeActivity.java b/app/src/main/java/org/literacyapp/content/task/LetterGraphemeActivity.java index b58c14b..870c7dd 100644 --- a/app/src/main/java/org/literacyapp/content/task/LetterGraphemeActivity.java +++ b/app/src/main/java/org/literacyapp/content/task/LetterGraphemeActivity.java @@ -16,9 +16,7 @@ import org.literacyapp.LiteracyApplication; import org.literacyapp.R; import org.literacyapp.dao.AudioDao; -import org.literacyapp.dao.JoinVideosWithLettersDao; import org.literacyapp.dao.LetterDao; -import org.literacyapp.dao.VideoDao; import org.literacyapp.model.content.Letter; import org.literacyapp.model.content.multimedia.Audio; import org.literacyapp.util.MediaPlayerHelper; @@ -35,8 +33,6 @@ public class LetterGraphemeActivity extends AppCompatActivity { private LetterDao letterDao; private AudioDao audioDao; - private VideoDao videoDao; - private JoinVideosWithLettersDao joinVideosWithLettersDao; @Override protected void onCreate(Bundle savedInstanceState) { @@ -52,8 +48,6 @@ protected void onCreate(Bundle savedInstanceState) { LiteracyApplication literacyApplication = (LiteracyApplication) getApplicationContext(); letterDao = literacyApplication.getDaoSession().getLetterDao(); audioDao = literacyApplication.getDaoSession().getAudioDao(); - videoDao = literacyApplication.getDaoSession().getVideoDao(); - joinVideosWithLettersDao = literacyApplication.getDaoSession().getJoinVideosWithLettersDao(); } @Override @@ -89,29 +83,6 @@ public void onClick(View view) { public void onClick(View view) { Log.i(getClass().getName(), "onClick"); -// // Look up video(s) containing letter -// List