Merge "Improve strings for share sheet and intent resolvers." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f4d1abb386
@@ -115,6 +115,10 @@ public abstract class AbstractMultiProfilePagerAdapter extends PagerAdapter {
|
||||
mInjector = injector;
|
||||
}
|
||||
|
||||
protected boolean isQuietModeEnabled(UserHandle workProfileUserHandle) {
|
||||
return mInjector.isQuietModeEnabled(workProfileUserHandle);
|
||||
}
|
||||
|
||||
void setOnProfileSelectedListener(OnProfileSelectedListener listener) {
|
||||
mOnProfileSelectedListener = listener;
|
||||
}
|
||||
@@ -339,23 +343,32 @@ public abstract class AbstractMultiProfilePagerAdapter extends PagerAdapter {
|
||||
protected abstract void showNoPersonalToWorkIntentsEmptyState(
|
||||
ResolverListAdapter activeListAdapter);
|
||||
|
||||
protected abstract void showNoPersonalAppsAvailableEmptyState(
|
||||
ResolverListAdapter activeListAdapter);
|
||||
|
||||
protected abstract void showNoWorkAppsAvailableEmptyState(
|
||||
ResolverListAdapter activeListAdapter);
|
||||
|
||||
protected abstract void showNoWorkToPersonalIntentsEmptyState(
|
||||
ResolverListAdapter activeListAdapter);
|
||||
|
||||
void showEmptyState(ResolverListAdapter listAdapter) {
|
||||
void showNoAppsAvailableEmptyState(ResolverListAdapter listAdapter) {
|
||||
UserHandle listUserHandle = listAdapter.getUserHandle();
|
||||
if (UserHandle.myUserId() == listUserHandle.getIdentifier()
|
||||
|| !hasAppsInOtherProfile(listAdapter)) {
|
||||
if (mWorkProfileUserHandle != null) {
|
||||
DevicePolicyEventLogger.createEvent(
|
||||
DevicePolicyEnums.RESOLVER_EMPTY_STATE_NO_APPS_RESOLVED)
|
||||
.setStrings(getMetricsCategory())
|
||||
.write();
|
||||
if (mWorkProfileUserHandle != null
|
||||
&& (UserHandle.myUserId() == listUserHandle.getIdentifier()
|
||||
|| !hasAppsInOtherProfile(listAdapter))) {
|
||||
DevicePolicyEventLogger.createEvent(
|
||||
DevicePolicyEnums.RESOLVER_EMPTY_STATE_NO_APPS_RESOLVED)
|
||||
.setStrings(getMetricsCategory())
|
||||
.setBoolean(/*isPersonalProfile*/ listUserHandle == mPersonalProfileUserHandle)
|
||||
.write();
|
||||
if (listUserHandle == mPersonalProfileUserHandle) {
|
||||
showNoPersonalAppsAvailableEmptyState(listAdapter);
|
||||
} else {
|
||||
showNoWorkAppsAvailableEmptyState(listAdapter);
|
||||
}
|
||||
showEmptyState(listAdapter,
|
||||
R.drawable.ic_no_apps,
|
||||
R.string.resolver_no_apps_available,
|
||||
/* subtitleRes */ 0);
|
||||
} else if (mWorkProfileUserHandle == null) {
|
||||
showConsumerUserNoAppsAvailableEmptyState(listAdapter);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -371,7 +384,7 @@ public abstract class AbstractMultiProfilePagerAdapter extends PagerAdapter {
|
||||
userHandleToPageIndex(activeListAdapter.getUserHandle()));
|
||||
descriptor.rootView.findViewById(R.id.resolver_list).setVisibility(View.GONE);
|
||||
View emptyStateView = descriptor.getEmptyStateView();
|
||||
resetViewVisibilities(emptyStateView);
|
||||
resetViewVisibilitiesForWorkProfileEmptyState(emptyStateView);
|
||||
emptyStateView.setVisibility(View.VISIBLE);
|
||||
|
||||
ImageView icon = emptyStateView.findViewById(R.id.resolver_empty_state_icon);
|
||||
@@ -395,6 +408,17 @@ public abstract class AbstractMultiProfilePagerAdapter extends PagerAdapter {
|
||||
activeListAdapter.markTabLoaded();
|
||||
}
|
||||
|
||||
private void showConsumerUserNoAppsAvailableEmptyState(ResolverListAdapter activeListAdapter) {
|
||||
ProfileDescriptor descriptor = getItem(
|
||||
userHandleToPageIndex(activeListAdapter.getUserHandle()));
|
||||
descriptor.rootView.findViewById(R.id.resolver_list).setVisibility(View.GONE);
|
||||
View emptyStateView = descriptor.getEmptyStateView();
|
||||
resetViewVisibilitiesForConsumerUserEmptyState(emptyStateView);
|
||||
emptyStateView.setVisibility(View.VISIBLE);
|
||||
|
||||
activeListAdapter.markTabLoaded();
|
||||
}
|
||||
|
||||
private void showSpinner(View emptyStateView) {
|
||||
emptyStateView.findViewById(R.id.resolver_empty_state_icon).setVisibility(View.INVISIBLE);
|
||||
emptyStateView.findViewById(R.id.resolver_empty_state_title).setVisibility(View.INVISIBLE);
|
||||
@@ -402,14 +426,25 @@ public abstract class AbstractMultiProfilePagerAdapter extends PagerAdapter {
|
||||
.setVisibility(View.INVISIBLE);
|
||||
emptyStateView.findViewById(R.id.resolver_empty_state_button).setVisibility(View.INVISIBLE);
|
||||
emptyStateView.findViewById(R.id.resolver_empty_state_progress).setVisibility(View.VISIBLE);
|
||||
emptyStateView.findViewById(R.id.empty).setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
private void resetViewVisibilities(View emptyStateView) {
|
||||
private void resetViewVisibilitiesForWorkProfileEmptyState(View emptyStateView) {
|
||||
emptyStateView.findViewById(R.id.resolver_empty_state_icon).setVisibility(View.VISIBLE);
|
||||
emptyStateView.findViewById(R.id.resolver_empty_state_title).setVisibility(View.VISIBLE);
|
||||
emptyStateView.findViewById(R.id.resolver_empty_state_subtitle).setVisibility(View.VISIBLE);
|
||||
emptyStateView.findViewById(R.id.resolver_empty_state_button).setVisibility(View.INVISIBLE);
|
||||
emptyStateView.findViewById(R.id.resolver_empty_state_progress).setVisibility(View.GONE);
|
||||
emptyStateView.findViewById(R.id.empty).setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
private void resetViewVisibilitiesForConsumerUserEmptyState(View emptyStateView) {
|
||||
emptyStateView.findViewById(R.id.resolver_empty_state_icon).setVisibility(View.GONE);
|
||||
emptyStateView.findViewById(R.id.resolver_empty_state_title).setVisibility(View.GONE);
|
||||
emptyStateView.findViewById(R.id.resolver_empty_state_subtitle).setVisibility(View.GONE);
|
||||
emptyStateView.findViewById(R.id.resolver_empty_state_button).setVisibility(View.GONE);
|
||||
emptyStateView.findViewById(R.id.resolver_empty_state_progress).setVisibility(View.GONE);
|
||||
emptyStateView.findViewById(R.id.empty).setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
protected void showListView(ResolverListAdapter activeListAdapter) {
|
||||
|
||||
@@ -175,7 +175,7 @@ public class ChooserMultiProfilePagerAdapter extends AbstractMultiProfilePagerAd
|
||||
View.OnClickListener listener) {
|
||||
showEmptyState(activeListAdapter,
|
||||
R.drawable.ic_work_apps_off,
|
||||
R.string.resolver_turn_on_work_apps_share,
|
||||
R.string.resolver_turn_on_work_apps,
|
||||
/* subtitleRes */ 0,
|
||||
listener);
|
||||
}
|
||||
@@ -185,7 +185,7 @@ public class ChooserMultiProfilePagerAdapter extends AbstractMultiProfilePagerAd
|
||||
showEmptyState(activeListAdapter,
|
||||
R.drawable.ic_sharing_disabled,
|
||||
R.string.resolver_cant_share_with_work_apps,
|
||||
R.string.resolver_cant_share_cross_profile_explanation);
|
||||
R.string.resolver_cant_share_with_work_apps_explanation);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -193,7 +193,23 @@ public class ChooserMultiProfilePagerAdapter extends AbstractMultiProfilePagerAd
|
||||
showEmptyState(activeListAdapter,
|
||||
R.drawable.ic_sharing_disabled,
|
||||
R.string.resolver_cant_share_with_personal_apps,
|
||||
R.string.resolver_cant_share_cross_profile_explanation);
|
||||
R.string.resolver_cant_share_with_personal_apps_explanation);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void showNoPersonalAppsAvailableEmptyState(ResolverListAdapter listAdapter) {
|
||||
showEmptyState(listAdapter,
|
||||
R.drawable.ic_no_apps,
|
||||
R.string.resolver_no_personal_apps_available_share,
|
||||
/* subtitleRes */ 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void showNoWorkAppsAvailableEmptyState(ResolverListAdapter listAdapter) {
|
||||
showEmptyState(listAdapter,
|
||||
R.drawable.ic_no_apps,
|
||||
R.string.resolver_no_work_apps_available_share,
|
||||
/* subtitleRes */ 0);
|
||||
}
|
||||
|
||||
class ChooserProfileDescriptor extends ProfileDescriptor {
|
||||
|
||||
@@ -752,6 +752,11 @@ public class ResolverActivity extends Activity implements
|
||||
}
|
||||
mRegistered = true;
|
||||
}
|
||||
if (shouldShowTabs() && mMultiProfilePagerAdapter.isWaitingToEnableWorkProfile()) {
|
||||
if (mMultiProfilePagerAdapter.isQuietModeEnabled(getWorkProfileUserHandle())) {
|
||||
mMultiProfilePagerAdapter.markWorkProfileEnabledBroadcastReceived();
|
||||
}
|
||||
}
|
||||
mMultiProfilePagerAdapter.getActiveListAdapter().handlePackagesChanged();
|
||||
updateProfileViewButton();
|
||||
}
|
||||
@@ -990,7 +995,7 @@ public class ResolverActivity extends Activity implements
|
||||
return;
|
||||
}
|
||||
if (shouldShowEmptyState(listAdapter)) {
|
||||
mMultiProfilePagerAdapter.showEmptyState(listAdapter);
|
||||
mMultiProfilePagerAdapter.showNoAppsAvailableEmptyState(listAdapter);
|
||||
} else {
|
||||
mMultiProfilePagerAdapter.showListView(listAdapter);
|
||||
}
|
||||
@@ -1603,8 +1608,6 @@ public class ResolverActivity extends Activity implements
|
||||
}
|
||||
|
||||
private void resetTabsHeaderStyle(TabWidget tabWidget) {
|
||||
String workContentDescription = getString(R.string.resolver_work_tab_accessibility);
|
||||
String personalContentDescription = getString(R.string.resolver_personal_tab_accessibility);
|
||||
for (int i = 0; i < tabWidget.getChildCount(); i++) {
|
||||
View tabView = tabWidget.getChildAt(i);
|
||||
TextView title = tabView.findViewById(android.R.id.title);
|
||||
@@ -1612,11 +1615,6 @@ public class ResolverActivity extends Activity implements
|
||||
title.setTextColor(getAttrColor(this, android.R.attr.textColorTertiary));
|
||||
title.setTextSize(TypedValue.COMPLEX_UNIT_PX,
|
||||
getResources().getDimension(R.dimen.resolver_tab_text_size));
|
||||
if (title.getText().equals(getString(R.string.resolver_personal_tab))) {
|
||||
tabView.setContentDescription(personalContentDescription);
|
||||
} else if (title.getText().equals(getString(R.string.resolver_work_tab))) {
|
||||
tabView.setContentDescription(workContentDescription);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ public class ResolverMultiProfilePagerAdapter extends AbstractMultiProfilePagerA
|
||||
View.OnClickListener listener) {
|
||||
showEmptyState(activeListAdapter,
|
||||
R.drawable.ic_work_apps_off,
|
||||
R.string.resolver_turn_on_work_apps_view,
|
||||
R.string.resolver_turn_on_work_apps,
|
||||
/* subtitleRes */ 0,
|
||||
listener);
|
||||
}
|
||||
@@ -188,6 +188,22 @@ public class ResolverMultiProfilePagerAdapter extends AbstractMultiProfilePagerA
|
||||
R.string.resolver_cant_access_personal_apps_explanation);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void showNoPersonalAppsAvailableEmptyState(ResolverListAdapter listAdapter) {
|
||||
showEmptyState(listAdapter,
|
||||
R.drawable.ic_no_apps,
|
||||
R.string.resolver_no_personal_apps_available_resolve,
|
||||
/* subtitleRes */ 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void showNoWorkAppsAvailableEmptyState(ResolverListAdapter listAdapter) {
|
||||
showEmptyState(listAdapter,
|
||||
R.drawable.ic_no_apps,
|
||||
R.string.resolver_no_work_apps_available_resolve,
|
||||
/* subtitleRes */ 0);
|
||||
}
|
||||
|
||||
class ResolverProfileDescriptor extends ProfileDescriptor {
|
||||
private ResolverListAdapter resolverListAdapter;
|
||||
final ListView listView;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/resolver_empty_state"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/resolver_empty_state_height"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal"
|
||||
android:visibility="gone"
|
||||
@@ -72,4 +72,12 @@
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_below="@+id/resolver_empty_state_subtitle"
|
||||
android:indeterminateTint="?attr/colorAccent"/>
|
||||
<TextView android:id="@+id/empty"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?attr/colorBackgroundFloating"
|
||||
android:text="@string/noApplications"
|
||||
android:padding="@dimen/chooser_edge_margin_normal"
|
||||
android:layout_marginBottom="56dp"
|
||||
android:gravity="center"/>
|
||||
</RelativeLayout>
|
||||
@@ -5402,33 +5402,42 @@
|
||||
<string name="resolver_personal_tab">Personal</string>
|
||||
<!-- Label of a tab on a screen. A user can tap this tab to switch to the 'Work' view (that shows their work content) if they have a work profile on their device. [CHAR LIMIT=NONE] -->
|
||||
<string name="resolver_work_tab">Work</string>
|
||||
<!-- Accessibility label for the personal tab button. [CHAR LIMIT=NONE] -->
|
||||
<string name="resolver_personal_tab_accessibility">Personal view</string>
|
||||
<!-- Accessibility label for the work tab button. [CHAR LIMIT=NONE] -->
|
||||
<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 personal content with work apps. [CHAR LIMIT=NONE] -->
|
||||
<string name="resolver_cant_share_with_work_apps">Can\u2019t share with work apps</string>
|
||||
<!-- Title of a screen. This text lets the user know that their IT admin doesn't allow them to share work content with personal apps. [CHAR LIMIT=NONE] -->
|
||||
<string name="resolver_cant_share_with_personal_apps">Can\u2019t share with personal apps</string>
|
||||
<!-- Error message. This text is explaining that the user's IT admin doesn't allow sharing between personal and work apps. [CHAR LIMIT=NONE] -->
|
||||
<string name="resolver_cant_share_cross_profile_explanation">Your IT admin blocked sharing between personal and work profiles</string>
|
||||
<!-- Title of an error screen. This error message lets the user know that their IT admin blocked access to work apps, and the personal content that they're trying to view in a work app, such as Chrome, isn't allowed. [CHAR LIMIT=NONE] -->
|
||||
<string name="resolver_cant_access_work_apps">Can\u2019t access work apps</string>
|
||||
<!-- Error message. This message lets the user know that their IT admin blocked access to work apps, and the personal content that they're trying to view in a work app, such as Chrome, isn't allowed. [CHAR LIMIT=NONE] -->
|
||||
<string name="resolver_cant_access_work_apps_explanation">Your IT admin doesn\u2019t let you view personal content in work apps</string>
|
||||
<!-- Title of an error screen. This error message lets the user know that their IT admin blocked access to personal apps, and the work content that they're trying to view in a personal app, such as Chrome, isn't allowed. [CHAR LIMIT=NONE] -->
|
||||
<string name="resolver_cant_access_personal_apps">Can\u2019t access personal apps</string>
|
||||
<!-- Error message. This message lets the user know that their IT admin blocked access to personal apps, and the work content that they're trying to view in a personal app, such as Chrome, isn't allowed. [CHAR LIMIT=NONE] -->
|
||||
<string name="resolver_cant_access_personal_apps_explanation">Your IT admin doesn\u2019t let you view work content in personal apps</string>
|
||||
<!-- Error message. This text lets the user know that they need to turn on work apps in order to share 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_share">Turn on work profile to share content</string>
|
||||
<!-- Error message. This text lets the user know that they need to turn on work apps in order to view 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_view">Turn on work profile to view content</string>
|
||||
<!-- Error message. This text lets the user know that work apps aren't available on the device. [CHAR LIMIT=NONE] -->
|
||||
<string name="resolver_no_apps_available">No apps available</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] -->
|
||||
<string name="resolver_cant_share_with_work_apps">Can\u2019t share this with work apps</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] -->
|
||||
<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>
|
||||
|
||||
<!-- 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] -->
|
||||
<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>
|
||||
|
||||
<!-- 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] -->
|
||||
<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>
|
||||
|
||||
<!-- 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] -->
|
||||
<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>
|
||||
|
||||
<!-- 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>
|
||||
<!-- 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>
|
||||
|
||||
<!-- 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>
|
||||
<!-- Error message. This text lets the user know that their current work apps can't open this specific content. [CHAR LIMIT=NONE] -->
|
||||
<string name="resolver_no_work_apps_available_resolve">No work apps can open this content</string>
|
||||
|
||||
<!-- Error message. This text lets the user know that their current personal apps don't support the specific content that they're trying to share. [CHAR LIMIT=NONE] -->
|
||||
<string name="resolver_no_personal_apps_available_share">No personal apps can support this content</string>
|
||||
<!-- Error message. This text lets the user know that their current personal apps can't open this specific content. [CHAR LIMIT=NONE] -->
|
||||
<string name="resolver_no_personal_apps_available_resolve">No personal apps can open this content</string>
|
||||
|
||||
<!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. [CHAR LIMIT=NONE] -->
|
||||
<string name="permlab_accessCallAudio">Record or play audio in telephony calls</string>
|
||||
<!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. [CHAR LIMIT=NONE] -->
|
||||
|
||||
@@ -3885,9 +3885,7 @@
|
||||
|
||||
<!-- Intent resolver and share sheet -->
|
||||
<java-symbol type="string" name="resolver_personal_tab" />
|
||||
<java-symbol type="string" name="resolver_personal_tab_accessibility" />
|
||||
<java-symbol type="string" name="resolver_work_tab" />
|
||||
<java-symbol type="string" name="resolver_work_tab_accessibility" />
|
||||
<java-symbol type="id" name="stub" />
|
||||
<java-symbol type="id" name="resolver_empty_state" />
|
||||
<java-symbol type="id" name="resolver_empty_state_icon" />
|
||||
@@ -3897,15 +3895,18 @@
|
||||
<java-symbol type="id" name="resolver_empty_state_progress" />
|
||||
<java-symbol type="id" name="resolver_tab_divider" />
|
||||
<java-symbol type="string" name="resolver_cant_share_with_work_apps" />
|
||||
<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_cross_profile_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_personal_apps" />
|
||||
<java-symbol type="string" name="resolver_cant_access_personal_apps_explanation" />
|
||||
<java-symbol type="string" name="resolver_turn_on_work_apps_view" />
|
||||
<java-symbol type="string" name="resolver_turn_on_work_apps_share" />
|
||||
<java-symbol type="string" name="resolver_no_apps_available" />
|
||||
<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_resolve" />
|
||||
<java-symbol type="string" name="resolver_no_personal_apps_available_share" />
|
||||
<java-symbol type="string" name="resolver_no_personal_apps_available_resolve" />
|
||||
<java-symbol type="string" name="resolver_switch_on_work" />
|
||||
<java-symbol type="drawable" name="ic_work_apps_off" />
|
||||
<java-symbol type="drawable" name="ic_sharing_disabled" />
|
||||
|
||||
@@ -1343,7 +1343,7 @@ public class ChooserActivityTest {
|
||||
onView(withText(R.string.resolver_work_tab)).perform(click());
|
||||
waitForIdle();
|
||||
|
||||
onView(withText(R.string.resolver_turn_on_work_apps_share))
|
||||
onView(withText(R.string.resolver_turn_on_work_apps))
|
||||
.check(matches(isDisplayed()));
|
||||
}
|
||||
|
||||
@@ -1368,7 +1368,7 @@ public class ChooserActivityTest {
|
||||
onView(withText(R.string.resolver_work_tab)).perform(click());
|
||||
waitForIdle();
|
||||
|
||||
onView(withText(R.string.resolver_no_apps_available))
|
||||
onView(withText(R.string.resolver_no_work_apps_available_share))
|
||||
.check(matches(isDisplayed()));
|
||||
}
|
||||
|
||||
|
||||
@@ -624,7 +624,7 @@ public class ResolverActivityTest {
|
||||
onView(withText(R.string.resolver_work_tab)).perform(click());
|
||||
waitForIdle();
|
||||
|
||||
onView(withText(R.string.resolver_turn_on_work_apps_view))
|
||||
onView(withText(R.string.resolver_turn_on_work_apps))
|
||||
.check(matches(isDisplayed()));
|
||||
}
|
||||
|
||||
@@ -648,7 +648,7 @@ public class ResolverActivityTest {
|
||||
onView(withText(R.string.resolver_work_tab)).perform(click());
|
||||
waitForIdle();
|
||||
|
||||
onView(withText(R.string.resolver_no_apps_available))
|
||||
onView(withText(R.string.resolver_no_work_apps_available_resolve))
|
||||
.check(matches(isDisplayed()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user