Fix accessiblity issue around work tab

1. Instead of always announcing "Apps list", we now announce
"personal apps list" and "work apps list" if tab is there.
2. Fix an issue that "personal" and "work" are announced twice.
3. Work footer is now announced as a group

FIX: 71703082

Change-Id: I0240bc04df09a5599540cfe67f0f48156f285548
This commit is contained in:
Tony Mak
2018-03-14 15:40:41 +00:00
parent 446aa8c122
commit 98f7350f8f
5 changed files with 24 additions and 5 deletions

View File

@@ -17,10 +17,9 @@ package com.android.launcher3.allapps;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import com.android.launcher3.PagedView;
import com.android.launcher3.R;
public class AllAppsPagedView extends PagedView<PersonalWorkSlidingTabStrip> {
@@ -42,8 +41,8 @@ public class AllAppsPagedView extends PagedView<PersonalWorkSlidingTabStrip> {
@Override
protected String getCurrentPageDescription() {
return getResources().getString(
getNextPage() == 0 ? R.string.all_apps_personal_tab : R.string.all_apps_work_tab);
// Not necessary, tab-bar already has two tabs with their own descriptions.
return "";
}
@Override