Merge "Remove duplicated white space in ContextImpl when throw AndroidRuntimeException" am: 67d1bacd75 am: 5998e8c203 am: 96b69de42f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2219559 Change-Id: Ia6f1ae30a094fe827736e5eeb8614e650ce927b8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1094,7 +1094,7 @@ class ContextImpl extends Context {
|
||||
&& (options == null
|
||||
|| ActivityOptions.fromBundle(options).getLaunchTaskId() == -1)) {
|
||||
throw new AndroidRuntimeException(
|
||||
"Calling startActivity() from outside of an Activity "
|
||||
"Calling startActivity() from outside of an Activity"
|
||||
+ " context requires the FLAG_ACTIVITY_NEW_TASK flag."
|
||||
+ " Is this really what you want?");
|
||||
}
|
||||
@@ -1128,7 +1128,7 @@ class ContextImpl extends Context {
|
||||
public int startActivitiesAsUser(Intent[] intents, Bundle options, UserHandle userHandle) {
|
||||
if ((intents[0].getFlags()&Intent.FLAG_ACTIVITY_NEW_TASK) == 0) {
|
||||
throw new AndroidRuntimeException(
|
||||
"Calling startActivities() from outside of an Activity "
|
||||
"Calling startActivities() from outside of an Activity"
|
||||
+ " context requires the FLAG_ACTIVITY_NEW_TASK flag on first Intent."
|
||||
+ " Is this really what you want?");
|
||||
}
|
||||
@@ -1142,7 +1142,7 @@ class ContextImpl extends Context {
|
||||
warnIfCallingFromSystemProcess();
|
||||
if ((intents[0].getFlags()&Intent.FLAG_ACTIVITY_NEW_TASK) == 0) {
|
||||
throw new AndroidRuntimeException(
|
||||
"Calling startActivities() from outside of an Activity "
|
||||
"Calling startActivities() from outside of an Activity"
|
||||
+ " context requires the FLAG_ACTIVITY_NEW_TASK flag on first Intent."
|
||||
+ " Is this really what you want?");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user