diff options
author | Alan Viverette <alanv@google.com> | 2013-12-11 16:07:00 -0800 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2013-12-11 16:07:00 -0800 |
commit | 72cb46f1b7cd4a73c5d48333baee205ad20fc48c (patch) | |
tree | d3f270371c271e473a0178bfc72674fdeccea712 /src/com/android/settings/accessibility | |
parent | 22b70376edd07a011eddb7d74c60c83fa575a1a2 (diff) | |
download | packages_apps_Settings-72cb46f1b7cd4a73c5d48333baee205ad20fc48c.tar.gz packages_apps_Settings-72cb46f1b7cd4a73c5d48333baee205ad20fc48c.tar.bz2 packages_apps_Settings-72cb46f1b7cd4a73c5d48333baee205ad20fc48c.zip |
Update A11y service dialog for explicit create() before getButton()
Change-Id: Ic0fb7e2e7985dd3d3b65e40a639ab5fc0f5a8fd5
Diffstat (limited to 'src/com/android/settings/accessibility')
-rw-r--r-- | src/com/android/settings/accessibility/ToggleAccessibilityServicePreferenceFragment.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/accessibility/ToggleAccessibilityServicePreferenceFragment.java b/src/com/android/settings/accessibility/ToggleAccessibilityServicePreferenceFragment.java index f097fd681..db473f8a8 100644 --- a/src/com/android/settings/accessibility/ToggleAccessibilityServicePreferenceFragment.java +++ b/src/com/android/settings/accessibility/ToggleAccessibilityServicePreferenceFragment.java @@ -168,8 +168,8 @@ public class ToggleAccessibilityServicePreferenceFragment .setPositiveButton(android.R.string.ok, this) .setNegativeButton(android.R.string.cancel, this) .create(); - ad.getButton(AlertDialog.BUTTON_POSITIVE) - .setFilterTouchesWhenObscured(true); + ad.create(); + ad.getButton(AlertDialog.BUTTON_POSITIVE).setFilterTouchesWhenObscured(true); return ad; } case DIALOG_ID_DISABLE_WARNING: { |