Fix certain Accessibility Settings subpages use wrong resources
Root cause: Portrait mode does not always respect the sw600dp qualifier and instead uses the phone (default) resources. Solution: Using the product to customize the tablet and phone cases is better way than using the configuration qualifier. Bug: 269130587 Test: Manual testing Change-Id: I90cc44f1e9bccf8950a4d89f70119ba5e3c0bfdc
This commit is contained in:
@@ -831,14 +831,7 @@ public abstract class ToggleFeaturePreferenceFragment extends DashboardFragment
|
||||
if (mDialog == null || !mDialog.isShowing()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Content in software shortcut need to be adjusted depend on the accessibility button
|
||||
// mode status which can be changed in background.
|
||||
final boolean valueChanged = mSavedAccessibilityFloatingMenuEnabled
|
||||
!= AccessibilityUtil.isFloatingMenuEnabled(getContext());
|
||||
if (valueChanged) {
|
||||
AccessibilityDialogUtils.updateSoftwareShortcutInDialog(getContext(), mDialog);
|
||||
}
|
||||
AccessibilityDialogUtils.updateShortcutInDialog(getContext(), mDialog);
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
|
||||
Reference in New Issue
Block a user