Adds null checks on callers of Nullable method getA11yServiceInfo().
Also renames mPackageName to mFeatureName. This string is used as the user-visible feature name, e.g. TalkBack, not the APK package name. Fix: 382054546 Test: n/a (existing presubmit) Flag: EXEMPT minor bugfix Change-Id: I1ce6902612d89bbb68bddf30227ca231ea98dce7
This commit is contained in:
@@ -112,7 +112,7 @@ public class ToggleScreenMagnificationPreferenceFragment extends
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
mPackageName = getString(R.string.accessibility_screen_magnification_title);
|
||||
mFeatureName = getString(R.string.accessibility_screen_magnification_title);
|
||||
mImageUri = new Uri.Builder().scheme(ContentResolver.SCHEME_ANDROID_RESOURCE)
|
||||
.authority(getPrefContext().getPackageName())
|
||||
.appendPath(String.valueOf(R.raw.a11y_magnification_banner))
|
||||
|
||||
Reference in New Issue
Block a user