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

Commit 6c00f16d authored by Samuel Fufa's avatar Samuel Fufa
Browse files

Define a11y content description for work paused list

Bug: 151803591
Test: Manual
Change-Id: I2b592189d784010f09fcd54378f2b34bd2d6c6e3
parent 77cf9b78
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) {