adjustments for string share... at menus
This commit is contained in:
parent
df19ca2741
commit
9d2c2d8f37
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue