Skip to content

Commit

Permalink
Merge pull request #4454 from Tamdav/CATROID-1337
Browse files Browse the repository at this point in the history
CATROID-1337 "Looks" shown instead of "Sounds"
  • Loading branch information
juliajulie95 authored Feb 13, 2022
2 parents ba343d9 + 13f837d commit a3afcd9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ public void testActivityRecreateNewSoundDialog() {

onView(withText(R.string.new_sound_dialog_title)).inRoot(isDialog())
.check(matches(isDisplayed()));
onView(withText(R.string.add_sound_from_recorder)).inRoot(isDialog())
.check(matches(isDisplayed()));
onView(withText(R.string.add_sound_choose_sound)).inRoot(isDialog())
.check(matches(isDisplayed()));
onView(withText(R.string.add_sound_choose_file)).inRoot(isDialog())
.check(matches(isDisplayed()));
onView(withText(R.string.add_sound_music)).inRoot(isDialog())
.check(matches(isDisplayed()));

InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> baseActivityTestRule.getActivity().recreate());
InstrumentationRegistry.getInstrumentation().waitForIdleSync();
Expand Down
2 changes: 1 addition & 1 deletion catroid/src/main/res/layout/dialog_new_sound.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
android:id="@+id/dialog_new_sound_media_library"
android:background="@drawable/new_object_dialog_selector"
android:gravity="center"
android:text="@string/add_look_media_library"
android:text="@string/add_sound_choose_sound"
android:textSize="?attr/medium"
app:drawableTopCompat="@drawable/ic_media_library_sounds" />
</TableRow>
Expand Down
1 change: 1 addition & 0 deletions catroid/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@
<string name="add_sound_from_recorder">Record sound</string>
<string name="add_sound_choose_file">Select file</string>
<string name="add_sound_music">Music composer</string>
<string name="add_sound_choose_sound">Sounds</string>

<!-- NotePickerDialog -->
<string name="note_picker_title">Note Picker</string>
Expand Down

0 comments on commit a3afcd9

Please sign in to comment.