SystemUI: Fix QSTileHost exception
If you enable/disable adaptive brightness from settings, and then opens the tile dropdown, exception occurs. --------- beginning of crash FATAL EXCEPTION: QSTileHost Process: com.android.systemui, PID: 735 android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6897) at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:1083) at android.view.ViewGroup.invalidateChild(ViewGroup.java:5205) at android.view.View.invalidateInternal(View.java:13660) at android.view.View.invalidate(View.java:13596) at android.view.View.invalidateDrawable(View.java:17808) at android.widget.TextView.invalidateDrawable(TextView.java:5555) at android.graphics.drawable.Drawable.invalidateSelf(Drawable.java:435) at android.graphics.drawable.DrawableContainer.selectDrawable(DrawableContainer.java:495) at android.graphics.drawable.AnimatedStateListDrawable.selectTransition(AnimatedStateListDrawable.java:205) at android.graphics.drawable.AnimatedStateListDrawable.onStateChange(AnimatedStateListDrawable.java:146) at android.graphics.drawable.Drawable.setState(Drawable.java:735) at android.widget.CompoundButton.drawableStateChanged(CompoundButton.java:462) at android.view.View.refreshDrawableState(View.java:18049) at android.widget.CompoundButton.setChecked(CompoundButton.java:145) at com.android.systemui.settings.BrightnessController$3.run(BrightnessController.java:192) at com.android.systemui.settings.BrightnessController$1.run(BrightnessController.java:155) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.os.HandlerThread.run(HandlerThread.java:61) Change-Id: Ia0dcb094ae089cb3ae79a98f7a5a02ba2c2064e5
Loading