Merge "Add an extra to HOME intent to indicate it comes form recents." into nyc-dev am: ea98d35d62
am: a41fcf5449
* commit 'a41fcf54499272e185733f5ee23ef3f51cb4fda5':
Add an extra to HOME intent to indicate it comes form recents.
Change-Id: I46cef20f7d8aa8b4b2af875c1eb609a347efac04
This commit is contained in:
@@ -73,6 +73,8 @@ public class RecentsTvActivity extends Activity implements OnPreDrawListener {
|
|||||||
private final static boolean DEBUG = false;
|
private final static boolean DEBUG = false;
|
||||||
|
|
||||||
public final static int EVENT_BUS_PRIORITY = Recents.EVENT_BUS_PRIORITY + 1;
|
public final static int EVENT_BUS_PRIORITY = Recents.EVENT_BUS_PRIORITY + 1;
|
||||||
|
private final static String RECENTS_HOME_INTENT_EXTRA =
|
||||||
|
"com.android.systemui.recents.tv.RecentsTvActivity.RECENTS_HOME_INTENT_EXTRA";
|
||||||
|
|
||||||
private boolean mFinishedOnStartup;
|
private boolean mFinishedOnStartup;
|
||||||
private RecentsPackageMonitor mPackageMonitor;
|
private RecentsPackageMonitor mPackageMonitor;
|
||||||
@@ -320,6 +322,7 @@ public class RecentsTvActivity extends Activity implements OnPreDrawListener {
|
|||||||
homeIntent.addCategory(Intent.CATEGORY_HOME);
|
homeIntent.addCategory(Intent.CATEGORY_HOME);
|
||||||
homeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
|
homeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
|
||||||
Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
|
Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
|
||||||
|
homeIntent.putExtra(RECENTS_HOME_INTENT_EXTRA, true);
|
||||||
mFinishLaunchHomeRunnable = new FinishRecentsRunnable(homeIntent);
|
mFinishLaunchHomeRunnable = new FinishRecentsRunnable(homeIntent);
|
||||||
|
|
||||||
mPipManager.addListener(mPipListener);
|
mPipManager.addListener(mPipListener);
|
||||||
|
|||||||
Reference in New Issue
Block a user