Merge "Update strings - chooser/resolver WP strings." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
edfb697d6b
@@ -194,12 +194,12 @@ public class ChooserMultiProfilePagerAdapter extends AbstractMultiProfilePagerAd
|
|||||||
if (mIsSendAction) {
|
if (mIsSendAction) {
|
||||||
showEmptyState(activeListAdapter,
|
showEmptyState(activeListAdapter,
|
||||||
R.drawable.ic_sharing_disabled,
|
R.drawable.ic_sharing_disabled,
|
||||||
R.string.resolver_cant_share_with_work_apps,
|
R.string.resolver_cross_profile_blocked,
|
||||||
R.string.resolver_cant_share_with_work_apps_explanation);
|
R.string.resolver_cant_share_with_work_apps_explanation);
|
||||||
} else {
|
} else {
|
||||||
showEmptyState(activeListAdapter,
|
showEmptyState(activeListAdapter,
|
||||||
R.drawable.ic_sharing_disabled,
|
R.drawable.ic_sharing_disabled,
|
||||||
R.string.resolver_cant_access_work_apps,
|
R.string.resolver_cross_profile_blocked,
|
||||||
R.string.resolver_cant_access_work_apps_explanation);
|
R.string.resolver_cant_access_work_apps_explanation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -209,12 +209,12 @@ public class ChooserMultiProfilePagerAdapter extends AbstractMultiProfilePagerAd
|
|||||||
if (mIsSendAction) {
|
if (mIsSendAction) {
|
||||||
showEmptyState(activeListAdapter,
|
showEmptyState(activeListAdapter,
|
||||||
R.drawable.ic_sharing_disabled,
|
R.drawable.ic_sharing_disabled,
|
||||||
R.string.resolver_cant_share_with_personal_apps,
|
R.string.resolver_cross_profile_blocked,
|
||||||
R.string.resolver_cant_share_with_personal_apps_explanation);
|
R.string.resolver_cant_share_with_personal_apps_explanation);
|
||||||
} else {
|
} else {
|
||||||
showEmptyState(activeListAdapter,
|
showEmptyState(activeListAdapter,
|
||||||
R.drawable.ic_sharing_disabled,
|
R.drawable.ic_sharing_disabled,
|
||||||
R.string.resolver_cant_access_personal_apps,
|
R.string.resolver_cross_profile_blocked,
|
||||||
R.string.resolver_cant_access_personal_apps_explanation);
|
R.string.resolver_cant_access_personal_apps_explanation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ public class ResolverMultiProfilePagerAdapter extends AbstractMultiProfilePagerA
|
|||||||
protected void showNoPersonalToWorkIntentsEmptyState(ResolverListAdapter activeListAdapter) {
|
protected void showNoPersonalToWorkIntentsEmptyState(ResolverListAdapter activeListAdapter) {
|
||||||
showEmptyState(activeListAdapter,
|
showEmptyState(activeListAdapter,
|
||||||
R.drawable.ic_sharing_disabled,
|
R.drawable.ic_sharing_disabled,
|
||||||
R.string.resolver_cant_access_work_apps,
|
R.string.resolver_cross_profile_blocked,
|
||||||
R.string.resolver_cant_access_work_apps_explanation);
|
R.string.resolver_cant_access_work_apps_explanation);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -213,7 +213,7 @@ public class ResolverMultiProfilePagerAdapter extends AbstractMultiProfilePagerA
|
|||||||
protected void showNoWorkToPersonalIntentsEmptyState(ResolverListAdapter activeListAdapter) {
|
protected void showNoWorkToPersonalIntentsEmptyState(ResolverListAdapter activeListAdapter) {
|
||||||
showEmptyState(activeListAdapter,
|
showEmptyState(activeListAdapter,
|
||||||
R.drawable.ic_sharing_disabled,
|
R.drawable.ic_sharing_disabled,
|
||||||
R.string.resolver_cant_access_personal_apps,
|
R.string.resolver_cross_profile_blocked,
|
||||||
R.string.resolver_cant_access_personal_apps_explanation);
|
R.string.resolver_cant_access_personal_apps_explanation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5635,30 +5635,24 @@
|
|||||||
<!-- Accessibility label for the work tab button. [CHAR LIMIT=NONE] -->
|
<!-- Accessibility label for the work tab button. [CHAR LIMIT=NONE] -->
|
||||||
<string name="resolver_work_tab_accessibility">Work view</string>
|
<string name="resolver_work_tab_accessibility">Work view</string>
|
||||||
|
|
||||||
<!-- Title of a screen. This text lets the user know that their IT admin doesn't allow them to share this specific content with work apps. [CHAR LIMIT=NONE] -->
|
<!-- Title of a screen. This text lets the user know that their IT admin doesn't allow them to share this content across profiles. [CHAR LIMIT=NONE] -->
|
||||||
<string name="resolver_cant_share_with_work_apps">Can\u2019t share this with work apps</string>
|
<string name="resolver_cross_profile_blocked">Blocked by your IT admin</string>
|
||||||
<!-- Error message. This text is explaining that the user's IT admin doesn't allow this specific content to be shared with apps in the work profile. [CHAR LIMIT=NONE] -->
|
<!-- Error message. This text is explaining that the user's IT admin doesn't allow this specific content to be shared with apps in the work profile. [CHAR LIMIT=NONE] -->
|
||||||
<string name="resolver_cant_share_with_work_apps_explanation">Your IT admin doesn\u2019t allow you to share this content with apps in your work profile</string>
|
<string name="resolver_cant_share_with_work_apps_explanation">This content can\u2019t be shared with work apps</string>
|
||||||
|
|
||||||
<!-- Title of an error screen. This error message lets the user know that their IT admin doesn't allow them to open this specific content with a work app. [CHAR LIMIT=NONE] -->
|
|
||||||
<string name="resolver_cant_access_work_apps">Can\u2019t open this with work apps</string>
|
|
||||||
<!-- Error message. This message lets the user know that their IT admin doesn't allow them to open this specific content with an app in their work profile. [CHAR LIMIT=NONE] -->
|
<!-- Error message. This message lets the user know that their IT admin doesn't allow them to open this specific content with an app in their work profile. [CHAR LIMIT=NONE] -->
|
||||||
<string name="resolver_cant_access_work_apps_explanation">Your IT admin doesn\u2019t allow you to open this content with apps in your work profile</string>
|
<string name="resolver_cant_access_work_apps_explanation">This content can\u2019t be opened with work apps</string>
|
||||||
|
|
||||||
<!-- Title of a screen. This text lets the user know that their IT admin doesn't allow them to share this specific content with personal apps. [CHAR LIMIT=NONE] -->
|
|
||||||
<string name="resolver_cant_share_with_personal_apps">Can\u2019t share this with personal apps</string>
|
|
||||||
<!-- Error message. This text is explaining that the user's IT admin doesn't allow them to share this specific content with apps in their personal profile. [CHAR LIMIT=NONE] -->
|
<!-- Error message. This text is explaining that the user's IT admin doesn't allow them to share this specific content with apps in their personal profile. [CHAR LIMIT=NONE] -->
|
||||||
<string name="resolver_cant_share_with_personal_apps_explanation">Your IT admin doesn\u2019t allow you to share this content with apps in your personal profile</string>
|
<string name="resolver_cant_share_with_personal_apps_explanation">This content can\u2019t be shared with personal apps</string>
|
||||||
|
|
||||||
<!-- Title of an error screen. This error message lets the user know that their IT admin doesn't allow them to open this specific content with a personal app. [CHAR LIMIT=NONE] -->
|
|
||||||
<string name="resolver_cant_access_personal_apps">Can\u2019t open this with personal apps</string>
|
|
||||||
<!-- Error message. This message lets the user know that their IT admin doesn't allow them to open this specific content with an app in their personal profile. [CHAR LIMIT=NONE] -->
|
<!-- Error message. This message lets the user know that their IT admin doesn't allow them to open this specific content with an app in their personal profile. [CHAR LIMIT=NONE] -->
|
||||||
<string name="resolver_cant_access_personal_apps_explanation">Your IT admin doesn\u2019t allow you to open this content with apps in your personal profile</string>
|
<string name="resolver_cant_access_personal_apps_explanation">This content can\u2019t be opened with personal apps</string>
|
||||||
|
|
||||||
<!-- Error message. This text lets the user know that they need to turn on work apps in order to share or open content. There's also a button a user can tap to turn on the apps. [CHAR LIMIT=NONE] -->
|
<!-- Error message. This text lets the user know that they need to turn on work apps in order to share or open content. There's also a button a user can tap to turn on the apps. [CHAR LIMIT=NONE] -->
|
||||||
<string name="resolver_turn_on_work_apps">Work profile is paused</string>
|
<string name="resolver_turn_on_work_apps">Work profile is paused</string>
|
||||||
<!-- Button text. This button turns on a user's work profile so they can access their work apps and data. [CHAR LIMIT=NONE] -->
|
<!-- Button text. This button turns on a user's work profile so they can access their work apps and data. [CHAR LIMIT=NONE] -->
|
||||||
<string name="resolver_switch_on_work">Turn on</string>
|
<string name="resolver_switch_on_work">Tap to turn on</string>
|
||||||
|
|
||||||
<!-- Error message. This text lets the user know that their current work apps don't support the specific content that they're trying to share. [CHAR LIMIT=NONE] -->
|
<!-- Error message. This text lets the user know that their current work apps don't support the specific content that they're trying to share. [CHAR LIMIT=NONE] -->
|
||||||
<string name="resolver_no_work_apps_available_share">No work apps can support this content</string>
|
<string name="resolver_no_work_apps_available_share">No work apps can support this content</string>
|
||||||
|
|||||||
@@ -4095,13 +4095,10 @@
|
|||||||
<java-symbol type="id" name="resolver_empty_state_container" />
|
<java-symbol type="id" name="resolver_empty_state_container" />
|
||||||
<java-symbol type="id" name="button_bar_container" />
|
<java-symbol type="id" name="button_bar_container" />
|
||||||
<java-symbol type="id" name="title_container" />
|
<java-symbol type="id" name="title_container" />
|
||||||
<java-symbol type="string" name="resolver_cant_share_with_work_apps" />
|
<java-symbol type="string" name="resolver_cross_profile_blocked" />
|
||||||
<java-symbol type="string" name="resolver_cant_share_with_work_apps_explanation" />
|
<java-symbol type="string" name="resolver_cant_share_with_work_apps_explanation" />
|
||||||
<java-symbol type="string" name="resolver_cant_share_with_personal_apps" />
|
|
||||||
<java-symbol type="string" name="resolver_cant_share_with_personal_apps_explanation" />
|
<java-symbol type="string" name="resolver_cant_share_with_personal_apps_explanation" />
|
||||||
<java-symbol type="string" name="resolver_cant_access_work_apps" />
|
|
||||||
<java-symbol type="string" name="resolver_cant_access_work_apps_explanation" />
|
<java-symbol type="string" name="resolver_cant_access_work_apps_explanation" />
|
||||||
<java-symbol type="string" name="resolver_cant_access_personal_apps" />
|
|
||||||
<java-symbol type="string" name="resolver_cant_access_personal_apps_explanation" />
|
<java-symbol type="string" name="resolver_cant_access_personal_apps_explanation" />
|
||||||
<java-symbol type="string" name="resolver_turn_on_work_apps" />
|
<java-symbol type="string" name="resolver_turn_on_work_apps" />
|
||||||
<java-symbol type="string" name="resolver_no_work_apps_available_share" />
|
<java-symbol type="string" name="resolver_no_work_apps_available_share" />
|
||||||
|
|||||||
@@ -1608,14 +1608,13 @@ public class ChooserActivityTest {
|
|||||||
onView(withId(R.id.contentPanel))
|
onView(withId(R.id.contentPanel))
|
||||||
.perform(swipeUp());
|
.perform(swipeUp());
|
||||||
|
|
||||||
onView(withText(R.string.resolver_cant_share_with_work_apps))
|
onView(withText(R.string.resolver_cross_profile_blocked))
|
||||||
.check(matches(isDisplayed()));
|
.check(matches(isDisplayed()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testWorkTab_workProfileDisabled_emptyStateShown() {
|
public void testWorkTab_workProfileDisabled_emptyStateShown() {
|
||||||
// enable the work tab feature flag
|
// enable the work tab feature flag
|
||||||
ResolverActivity.ENABLE_TABBED_VIEW = true;
|
|
||||||
markWorkProfileUserAvailable();
|
markWorkProfileUserAvailable();
|
||||||
int workProfileTargets = 4;
|
int workProfileTargets = 4;
|
||||||
List<ResolvedComponentInfo> personalResolvedComponentInfos =
|
List<ResolvedComponentInfo> personalResolvedComponentInfos =
|
||||||
@@ -1627,6 +1626,7 @@ public class ChooserActivityTest {
|
|||||||
Intent sendIntent = createSendTextIntent();
|
Intent sendIntent = createSendTextIntent();
|
||||||
sendIntent.setType("TestType");
|
sendIntent.setType("TestType");
|
||||||
|
|
||||||
|
ResolverActivity.ENABLE_TABBED_VIEW = true;
|
||||||
final ChooserWrapperActivity activity =
|
final ChooserWrapperActivity activity =
|
||||||
mActivityRule.launchActivity(Intent.createChooser(sendIntent, "work tab test"));
|
mActivityRule.launchActivity(Intent.createChooser(sendIntent, "work tab test"));
|
||||||
waitForIdle();
|
waitForIdle();
|
||||||
@@ -1686,7 +1686,7 @@ public class ChooserActivityTest {
|
|||||||
onView(withText(R.string.resolver_work_tab)).perform(click());
|
onView(withText(R.string.resolver_work_tab)).perform(click());
|
||||||
waitForIdle();
|
waitForIdle();
|
||||||
|
|
||||||
onView(withText(R.string.resolver_cant_share_with_work_apps))
|
onView(withText(R.string.resolver_cross_profile_blocked))
|
||||||
.check(matches(isDisplayed()));
|
.check(matches(isDisplayed()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2116,7 +2116,7 @@ public class ChooserActivityTest {
|
|||||||
onView(withId(R.id.contentPanel))
|
onView(withId(R.id.contentPanel))
|
||||||
.perform(swipeUp());
|
.perform(swipeUp());
|
||||||
|
|
||||||
onView(withText(R.string.resolver_cant_access_work_apps))
|
onView(withText(R.string.resolver_cross_profile_blocked))
|
||||||
.check(matches(isDisplayed()));
|
.check(matches(isDisplayed()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -650,7 +650,7 @@ public class ResolverActivityTest {
|
|||||||
onView(withId(R.id.contentPanel))
|
onView(withId(R.id.contentPanel))
|
||||||
.perform(swipeUp());
|
.perform(swipeUp());
|
||||||
|
|
||||||
onView(withText(R.string.resolver_cant_access_work_apps))
|
onView(withText(R.string.resolver_cross_profile_blocked))
|
||||||
.check(matches(isDisplayed()));
|
.check(matches(isDisplayed()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -726,7 +726,7 @@ public class ResolverActivityTest {
|
|||||||
onView(withText(R.string.resolver_work_tab)).perform(click());
|
onView(withText(R.string.resolver_work_tab)).perform(click());
|
||||||
waitForIdle();
|
waitForIdle();
|
||||||
|
|
||||||
onView(withText(R.string.resolver_cant_access_work_apps))
|
onView(withText(R.string.resolver_cross_profile_blocked))
|
||||||
.check(matches(isDisplayed()));
|
.check(matches(isDisplayed()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user