mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user