Follow O patterns for a11y settings
Move the summary for the toggled features to a footer. Make the settings appear as a preference. Bug: 36780887 Test: Start settings and observe the new UI looks a lot like the mocks referenced in the bug. Also added unit test to verify that summary text shows up. Change-Id: I1d002b194991d0901ecb27198ba5de73bd23a5a9
This commit is contained in:
@@ -34,7 +34,6 @@ import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
import android.view.MenuItem;
|
||||
import android.view.accessibility.AccessibilityManager;
|
||||
|
||||
import com.android.internal.logging.nano.MetricsProto.MetricsEvent;
|
||||
@@ -79,14 +78,6 @@ public class ToggleAccessibilityServicePreferenceFragment
|
||||
// Do not call super. We don't want to see the "Help & feedback" option on this page so as
|
||||
// not to confuse users who think they might be able to send feedback about a specific
|
||||
// accessibility service from this page.
|
||||
|
||||
// We still want to show the "Settings" menu.
|
||||
if (mSettingsTitle != null && mSettingsIntent != null) {
|
||||
MenuItem menuItem = menu.add(mSettingsTitle);
|
||||
menuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
|
||||
menuItem.setIntent(mSettingsIntent);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user