Stops black screen from being displayed on changing Vision Settings in SUW.
Bug: 27328791

Change-Id: Ied247c3a31dfc50c0113667e63aea4a0c771f7bc
diff --git a/src/com/android/settings/PreviewSeekBarPreferenceFragment.java b/src/com/android/settings/PreviewSeekBarPreferenceFragment.java
index 15baa38..bac146d 100644
--- a/src/com/android/settings/PreviewSeekBarPreferenceFragment.java
+++ b/src/com/android/settings/PreviewSeekBarPreferenceFragment.java
@@ -193,15 +193,6 @@
         return root;
     }
 
-    @Override
-    public void onDetach() {
-        super.onDetach();
-
-        // This will commit the change SLIGHTLY after the activity has
-        // finished, which could be considered a feature or a bug...
-        commit();
-    }
-
     /**
      * Creates new configuration based on the current position of the SeekBar.
      */