diff options
author | Jim Miller <jaggies@google.com> | 2010-08-30 18:04:30 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-08-30 18:04:30 -0700 |
commit | 91b2eb933cbafbce13e2afa2220cd72d363be947 (patch) | |
tree | 9fcfe01a6251bcff94880c6fa355867e67070523 /packages/SystemUI/src | |
parent | bcc2f7589a1402c24c1aa3aa3036ee73d094c2ee (diff) | |
parent | a10194936c457da55402cbfedd541fcd0cdb12d3 (diff) | |
download | frameworks_base-91b2eb933cbafbce13e2afa2220cd72d363be947.zip frameworks_base-91b2eb933cbafbce13e2afa2220cd72d363be947.tar.gz frameworks_base-91b2eb933cbafbce13e2afa2220cd72d363be947.tar.bz2 |
Merge "Fix 2797185: Add recents to statusbar on xlarge device."
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBarService.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBarService.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBarService.java index 087671a..312c5f4 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBarService.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBarService.java @@ -22,6 +22,7 @@ import android.app.Notification; import android.app.PendingIntent; import android.app.Service; import android.app.StatusBarManager; +import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.content.res.Resources; @@ -495,6 +496,15 @@ public class TabletStatusBarService extends StatusBarService { mHandler.sendEmptyMessage(msg); } + public void recentButtonClicked(View v) { + if (DEBUG) Slog.d(TAG, "clicked recent apps"); + Intent intent = new Intent(); + intent.setClass(this, RecentApplicationsActivity.class); + intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK + | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); + startActivity(intent); + } + /** * Cancel this notification and tell the status bar service about the failure. Hold no locks. */ |