Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 411a0866 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Define a11y content description for work paused list" into ub-launcher3-rvc-dev

parents 57dab6fa 6c00f16d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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>
+2 −2
Original line number Diff line number Diff line
@@ -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) {