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
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java
index 6d1313c..5efa6d9 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java
@@ -28,7 +28,6 @@
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.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 @@
}
}
mOwnerInfo.setText(info);
+ updateDark();
}
@Override