diff options
author | Adam Powell <adamp@google.com> | 2015-10-20 00:33:37 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-10-20 00:33:37 +0000 |
commit | 4ecfbcfdeaed67c3a08002069a530fa58582a48b (patch) | |
tree | a14217010d96d96898d30e30ebf9512d3c963eb1 /core | |
parent | 9a345f31f23fc581f9ce501e854c821e865920ca (diff) | |
parent | 918b90108b850904c4c2e194c2419529586250d8 (diff) | |
download | frameworks_base-4ecfbcfdeaed67c3a08002069a530fa58582a48b.zip frameworks_base-4ecfbcfdeaed67c3a08002069a530fa58582a48b.tar.gz frameworks_base-4ecfbcfdeaed67c3a08002069a530fa58582a48b.tar.bz2 |
Merge "DO NOT MERGE Fix jank when intent resolver/chooser windows animate in" into mnc-dr-dev
Diffstat (limited to 'core')
-rw-r--r-- | core/java/com/android/internal/app/ResolverActivity.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/com/android/internal/app/ResolverActivity.java b/core/java/com/android/internal/app/ResolverActivity.java index ba0912a..4ba678c 100644 --- a/core/java/com/android/internal/app/ResolverActivity.java +++ b/core/java/com/android/internal/app/ResolverActivity.java @@ -26,6 +26,7 @@ import android.os.AsyncTask; import android.provider.Settings; import android.text.TextUtils; import android.util.Slog; +import android.view.View.OnAttachStateChangeListener; import android.widget.AbsListView; import com.android.internal.R; import com.android.internal.content.PackageMonitor; @@ -331,6 +332,18 @@ public class ResolverActivity extends Activity { if (isVoiceInteraction()) { onSetupVoiceInteraction(); } + + getWindow().getDecorView().addOnAttachStateChangeListener( + new OnAttachStateChangeListener() { + @Override + public void onViewAttachedToWindow(View v) { + v.getViewRootImpl().setDrawDuringWindowsAnimating(true); + } + + @Override + public void onViewDetachedFromWindow(View v) { + } + }); } /** |