diff options
author | Todd Kennedy <toddke@google.com> | 2015-01-16 16:05:14 -0800 |
---|---|---|
committer | Todd Kennedy <toddke@google.com> | 2015-01-20 10:51:49 -0800 |
commit | 4900bf9d82c4905fadc43d8e2dd9a7f896da2d81 (patch) | |
tree | d6758555e1a054e6a6e46276919166bd44f9db14 /cmds | |
parent | df8e59abe5b0803cddee243e2c98d06afb66f5a9 (diff) | |
download | frameworks_base-4900bf9d82c4905fadc43d8e2dd9a7f896da2d81.zip frameworks_base-4900bf9d82c4905fadc43d8e2dd9a7f896da2d81.tar.gz frameworks_base-4900bf9d82c4905fadc43d8e2dd9a7f896da2d81.tar.bz2 |
Expose new binder call createStackOnDisplay()
Creates a new, empty ActivityStack on a display. Use the binder call to
launch an activity on said stack.
Bug: 19001243
Change-Id: I0f04e8f2703bcc706f58e75333869fb35f6b1ee9
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/am/src/com/android/commands/am/Am.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java index 507770c..2a0ed90 100644 --- a/cmds/am/src/com/android/commands/am/Am.java +++ b/cmds/am/src/com/android/commands/am/Am.java @@ -1694,11 +1694,10 @@ public class Am extends BaseCommand { Intent intent = makeIntent(UserHandle.USER_CURRENT); try { - IBinder homeActivityToken = mAm.getHomeActivityToken(); - IActivityContainer container = - mAm.createVirtualActivityContainer(homeActivityToken, null); - container.attachToDisplay(displayId); - container.startActivity(intent); + IActivityContainer container = mAm.createStackOnDisplay(displayId); + if (container != null) { + container.startActivity(intent); + } } catch (RemoteException e) { } } |