diff options
author | Michael Jurka <mikejurka@google.com> | 2012-05-14 13:24:43 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2012-05-14 14:38:38 -0700 |
commit | 56a5783c02c17e7353ee342fa24f04bec7bb545b (patch) | |
tree | 0aba24a422138d4a14d22eaa99ea8c6cfa841a74 /packages/SystemUI/src/com/android/systemui/recent | |
parent | 776627b8b0f20e88d31ab83e510de1344043b919 (diff) | |
download | frameworks_base-56a5783c02c17e7353ee342fa24f04bec7bb545b.zip frameworks_base-56a5783c02c17e7353ee342fa24f04bec7bb545b.tar.gz frameworks_base-56a5783c02c17e7353ee342fa24f04bec7bb545b.tar.bz2 |
Hide notification panel when launching recent apps
Bug: 6484280
Change-Id: Ib97af40979ccdd98aa2b8af6c1488b33b34bdf2b
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recent')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java index 6785c29..39d686f 100644 --- a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java @@ -19,6 +19,7 @@ package com.android.systemui.recent; import android.animation.Animator; import android.animation.LayoutTransition; import android.app.ActivityManager; +import android.app.ActivityManagerNative; import android.app.ActivityOptions; import android.content.Context; import android.content.Intent; @@ -26,13 +27,13 @@ import android.content.res.Configuration; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Bitmap; -import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Rect; import android.graphics.Shader.TileMode; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.net.Uri; +import android.os.RemoteException; import android.provider.Settings; import android.util.AttributeSet; import android.util.Log; @@ -283,8 +284,19 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener } } + static void sendCloseSystemWindows(Context context, String reason) { + if (ActivityManagerNative.isSystemReady()) { + try { + ActivityManagerNative.getDefault().closeSystemDialogs(reason); + } catch (RemoteException e) { + } + } + } + public void show(boolean show, boolean animate, ArrayList<TaskDescription> recentTaskDescriptions, boolean firstScreenful) { + sendCloseSystemWindows(mContext, BaseStatusBar.SYSTEM_DIALOG_REASON_RECENT_APPS); + // For now, disable animations. We may want to re-enable in the future if (show) { animate = false; |