OSDN Git Service

Revert "SystemUI: Fix QSTileHost exception"
authorLuca Stefani <luca020400@lineageos.org>
Thu, 20 Apr 2017 15:43:18 +0000 (17:43 +0200)
committerMichael Bestas <mkbestas@lineageos.org>
Thu, 27 Apr 2017 08:12:30 +0000 (08:12 +0000)
This reverts commit 357c5168fa3bdc5e919e9a6a77d3598c2d40743c.

Change-Id: Iac2632f47058f72dffd73b1760970323b1c24cfb

packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java

index ed8b8b0..c60b299 100644 (file)
@@ -168,8 +168,8 @@ public class BrightnessController implements ToggleSlider.Listener {
 
             // Update the slider and mode before attaching the listener so we don't
             // receive the onChanged notifications for the initial values.
-            mHandler.post(mUpdateModeRunnable);
-            mHandler.post(mUpdateSliderRunnable);
+            mUpdateModeRunnable.run();
+            mUpdateSliderRunnable.run();
 
             mHandler.sendEmptyMessage(MSG_ATTACH_LISTENER);
         }