Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ed278fd authored by Daniel Sandler's avatar Daniel Sandler Committed by Android Git Automerger
Browse files

am 06e75cf4: am 62c19871: am da35dded: Relayout the immersive cling in the correct thread.

* commit '06e75cf4':
  Relayout the immersive cling in the correct thread.
parents 75a50388 06e75cf4
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -201,14 +201,21 @@ public class ImmersiveModeConfirmation {
        private ValueAnimator mColorAnim;
        private ViewGroup mClingLayout;

        private BroadcastReceiver mReceiver = new BroadcastReceiver() {
        private Runnable mUpdateLayoutRunnable = new Runnable() {
            @Override
            public void onReceive(Context context, Intent intent) {
                if (intent.getAction().equals(Intent.ACTION_CONFIGURATION_CHANGED)) {
            public void run() {
                if (mClingLayout != null && mClingLayout.getParent() != null) {
                    mClingLayout.setLayoutParams(getBubbleLayoutParams());
                }
            }
        };

        private BroadcastReceiver mReceiver = new BroadcastReceiver() {
            @Override
            public void onReceive(Context context, Intent intent) {
                if (intent.getAction().equals(Intent.ACTION_CONFIGURATION_CHANGED)) {
                    post(mUpdateLayoutRunnable);
                }
            }
        };