Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT
Per feedback from API council. Bug: 26508215 Change-Id: Id17166fe981587c9c16c382ccbdf0846ed2ae5d6
This commit is contained in:
@@ -8640,7 +8640,7 @@ package android.content {
|
||||
field public static final int FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS = 8388608; // 0x800000
|
||||
field public static final int FLAG_ACTIVITY_FORWARD_RESULT = 33554432; // 0x2000000
|
||||
field public static final int FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY = 1048576; // 0x100000
|
||||
field public static final int FLAG_ACTIVITY_LAUNCH_TO_SIDE = 4096; // 0x1000
|
||||
field public static final int FLAG_ACTIVITY_LAUNCH_ADJACENT = 4096; // 0x1000
|
||||
field public static final int FLAG_ACTIVITY_MULTIPLE_TASK = 134217728; // 0x8000000
|
||||
field public static final int FLAG_ACTIVITY_NEW_DOCUMENT = 524288; // 0x80000
|
||||
field public static final int FLAG_ACTIVITY_NEW_TASK = 268435456; // 0x10000000
|
||||
|
||||
@@ -8954,7 +8954,7 @@ package android.content {
|
||||
field public static final int FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS = 8388608; // 0x800000
|
||||
field public static final int FLAG_ACTIVITY_FORWARD_RESULT = 33554432; // 0x2000000
|
||||
field public static final int FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY = 1048576; // 0x100000
|
||||
field public static final int FLAG_ACTIVITY_LAUNCH_TO_SIDE = 4096; // 0x1000
|
||||
field public static final int FLAG_ACTIVITY_LAUNCH_ADJACENT = 4096; // 0x1000
|
||||
field public static final int FLAG_ACTIVITY_MULTIPLE_TASK = 134217728; // 0x8000000
|
||||
field public static final int FLAG_ACTIVITY_NEW_DOCUMENT = 524288; // 0x80000
|
||||
field public static final int FLAG_ACTIVITY_NEW_TASK = 268435456; // 0x10000000
|
||||
|
||||
@@ -8645,7 +8645,7 @@ package android.content {
|
||||
field public static final int FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS = 8388608; // 0x800000
|
||||
field public static final int FLAG_ACTIVITY_FORWARD_RESULT = 33554432; // 0x2000000
|
||||
field public static final int FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY = 1048576; // 0x100000
|
||||
field public static final int FLAG_ACTIVITY_LAUNCH_TO_SIDE = 4096; // 0x1000
|
||||
field public static final int FLAG_ACTIVITY_LAUNCH_ADJACENT = 4096; // 0x1000
|
||||
field public static final int FLAG_ACTIVITY_MULTIPLE_TASK = 134217728; // 0x8000000
|
||||
field public static final int FLAG_ACTIVITY_NEW_DOCUMENT = 524288; // 0x80000
|
||||
field public static final int FLAG_ACTIVITY_NEW_TASK = 268435456; // 0x10000000
|
||||
|
||||
@@ -4587,11 +4587,11 @@ public class Intent implements Parcelable, Cloneable {
|
||||
public static final int FLAG_ACTIVITY_RETAIN_IN_RECENTS = 0x00002000;
|
||||
|
||||
/**
|
||||
* This flag is only used in the multi-window mode. The new activity will be displayed on
|
||||
* the other side than the one that is launching it. This can only be used in conjunction with
|
||||
* This flag is only used in split-screen multi-window mode. The new activity will be displayed
|
||||
* adjacent to the one launching it. This can only be used in conjunction with
|
||||
* {@link #FLAG_ACTIVITY_NEW_TASK}.
|
||||
*/
|
||||
public static final int FLAG_ACTIVITY_LAUNCH_TO_SIDE = 0x00001000;
|
||||
public static final int FLAG_ACTIVITY_LAUNCH_ADJACENT = 0x00001000;
|
||||
|
||||
/**
|
||||
* If set, when sending a broadcast only registered receivers will be
|
||||
|
||||
@@ -289,7 +289,7 @@ public class FilesActivity extends BaseActivity {
|
||||
// By default we'd be launched in-place above the existing app.
|
||||
// By setting launch-to-side ActivityManager will open us to side.
|
||||
if (inMultiWindowMode()) {
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_LAUNCH_TO_SIDE);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT);
|
||||
}
|
||||
|
||||
startActivity(intent);
|
||||
|
||||
@@ -17,7 +17,7 @@ import static android.app.ActivityManager.StackId.INVALID_STACK_ID;
|
||||
import static android.app.ActivityManager.StackId.PINNED_STACK_ID;
|
||||
import static android.content.Intent.FLAG_ACTIVITY_CLEAR_TASK;
|
||||
import static android.content.Intent.FLAG_ACTIVITY_CLEAR_TOP;
|
||||
import static android.content.Intent.FLAG_ACTIVITY_LAUNCH_TO_SIDE;
|
||||
import static android.content.Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT;
|
||||
import static android.content.Intent.FLAG_ACTIVITY_MULTIPLE_TASK;
|
||||
import static android.content.Intent.FLAG_ACTIVITY_NEW_DOCUMENT;
|
||||
import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
|
||||
@@ -1672,7 +1672,7 @@ class ActivityStarter {
|
||||
return mSupervisor.getStack(FULLSCREEN_WORKSPACE_STACK_ID, CREATE_IF_NEEDED, ON_TOP);
|
||||
}
|
||||
|
||||
if (!launchToSideAllowed || (launchFlags & FLAG_ACTIVITY_LAUNCH_TO_SIDE) == 0) {
|
||||
if (!launchToSideAllowed || (launchFlags & FLAG_ACTIVITY_LAUNCH_ADJACENT) == 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user