adjustments for string share... at menus

This commit is contained in:
Gerardo Vázquez 2020-07-10 11:42:03 -05:00
parent df19ca2741
commit 9d2c2d8f37
4 changed files with 5 additions and 6 deletions

View File

@ -79,13 +79,13 @@ public class ShareDialogTest {
@Test
public void testShareDialogDisplayed() throws InterruptedException {
onView(withText(R.string.share_label)).perform(click());
onView(withText(R.string.share_label_with_ellipses)).perform(click());
onView(allOf(isDisplayed(), withText(R.string.share_label)));
}
@Test
public void testShareDialogCancelButton() {
onView(withText(R.string.share_label)).perform(scrollTo()).perform(click());
onView(withText(R.string.share_label_with_ellipses)).perform(scrollTo()).perform(click());
onView(withText(R.string.cancel_label)).check(matches(isDisplayed())).perform(scrollTo()).perform(click());
}

View File

@ -81,8 +81,7 @@ public class ShareDialog extends DialogFragment {
}
prefs.edit().putBoolean(PREF_SHARE_EPISODE_START_AT, includePlaybackPosition).apply();
}
})
.setNegativeButton(R.string.cancel_label, new DialogInterface.OnClickListener() {
}).setNegativeButton(R.string.cancel_label, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.dismiss();
}

View File

@ -71,7 +71,7 @@
<item
android:id="@+id/share_item"
android:menuCategory="container"
android:title="@string/share_label">
android:title="@string/share_label_with_ellipses">
</item>
<item

View File

@ -62,6 +62,6 @@
android:id="@+id/share_item"
android:menuCategory="container"
custom:showAsAction="never"
android:title="@string/share_label">
android:title="@string/share_label_with_ellipses">
</item>
</menu>