Merge "Define a11y content description for work paused list" into ub-launcher3-rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
411a08665f
@@ -343,6 +343,10 @@
|
||||
<string name="work_apps_paused_title">Work profile is paused</string>
|
||||
<!--- body shown when user opens work apps tab while work apps are paused -->
|
||||
<string name="work_apps_paused_body">Work apps can\’t send you notifications, use your battery, or access your location</string>
|
||||
<!-- content description for paused work apps list -->
|
||||
<string name="work_apps_paused_content_description">Work profile is paused. Work apps can\’t send you notifications, use your battery, or access your location</string>
|
||||
|
||||
|
||||
|
||||
<!-- A tip shown pointing at work toggle -->
|
||||
<string name="work_switch_tip">Pause work apps and notifications</string>
|
||||
|
||||
@@ -645,8 +645,8 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
|
||||
if (!mIsWork || recyclerView == null) return;
|
||||
boolean workDisabled = UserCache.INSTANCE.get(mLauncher).isAnyProfileQuietModeEnabled();
|
||||
if (mWorkDisabled == workDisabled) return;
|
||||
recyclerView.setContentDescription(
|
||||
workDisabled ? mLauncher.getString(R.string.work_apps_paused_title) : null);
|
||||
recyclerView.setContentDescription(workDisabled ? mLauncher.getString(
|
||||
R.string.work_apps_paused_content_description) : null);
|
||||
View overlayView = getOverlayView();
|
||||
recyclerView.setItemAnimator(new DefaultItemAnimator());
|
||||
if (workDisabled) {
|
||||
|
||||
Reference in New Issue
Block a user