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

Commit 43976f83 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Fix re-layout race condition

On older devices, the dark amount wouldn't be updated before the layout
pass, the owner info view would end up with the wrong visibility.

Change-Id: I0f7660d70a090ecd1a86a1d870645982edeb1ea4
Fixes: 113247412
Test: manual
parent f7994fe6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@ import android.os.Handler;
import android.os.Looper;
import android.os.RemoteException;
import android.os.UserHandle;
import androidx.core.graphics.ColorUtils;
import android.text.TextUtils;
import android.text.format.DateFormat;
import android.util.ArraySet;
@@ -41,6 +40,8 @@ import android.widget.GridLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import androidx.core.graphics.ColorUtils;

import com.android.internal.widget.LockPatternUtils;
import com.android.internal.widget.ViewClippingUtil;
import com.android.systemui.Dependency;
@@ -352,6 +353,7 @@ public class KeyguardStatusView extends GridLayout implements
            }
        }
        mOwnerInfo.setText(info);
        updateDark();
    }

    @Override