summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2013-10-18 11:43:14 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-18 11:43:14 -0700
commit06e75cf4ed8d42e5ef5273503bab4ceea6cd07d6 (patch)
tree1b0021baf1a6b10cb15b6b22743abd7a6160704a /policy
parent83bf440440309a394f792e3d8a6acb98197d9d7c (diff)
parent62c198719afa30eaaa0fe52caed5ed8c520ba6ce (diff)
downloadframeworks_base-06e75cf4ed8d42e5ef5273503bab4ceea6cd07d6.zip
frameworks_base-06e75cf4ed8d42e5ef5273503bab4ceea6cd07d6.tar.gz
frameworks_base-06e75cf4ed8d42e5ef5273503bab4ceea6cd07d6.tar.bz2
am 62c19871: am da35dded: Relayout the immersive cling in the correct thread.
* commit '62c198719afa30eaaa0fe52caed5ed8c520ba6ce': Relayout the immersive cling in the correct thread.
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/ImmersiveModeConfirmation.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/policy/src/com/android/internal/policy/impl/ImmersiveModeConfirmation.java b/policy/src/com/android/internal/policy/impl/ImmersiveModeConfirmation.java
index dfdcdad5..3e57a77 100644
--- a/policy/src/com/android/internal/policy/impl/ImmersiveModeConfirmation.java
+++ b/policy/src/com/android/internal/policy/impl/ImmersiveModeConfirmation.java
@@ -201,13 +201,20 @@ public class ImmersiveModeConfirmation {
private ValueAnimator mColorAnim;
private ViewGroup mClingLayout;
+ private Runnable mUpdateLayoutRunnable = new Runnable() {
+ @Override
+ 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)) {
- if (mClingLayout != null && mClingLayout.getParent() != null) {
- mClingLayout.setLayoutParams(getBubbleLayoutParams());
- }
+ post(mUpdateLayoutRunnable);
}
}
};