am 4a79a04b: When we\'re launching apps, we need to always use startActivitySafely.
Merge commit '4a79a04bcd5f8c4d4fab7bcc46eea9e19a3dc63e' * commit '4a79a04bcd5f8c4d4fab7bcc46eea9e19a3dc63e': When we're launching apps, we need to always use startActivitySafely.
This commit is contained in:
@@ -1473,9 +1473,9 @@ public final class Launcher extends Activity
|
||||
|
||||
Intent pickIntent = new Intent(Intent.ACTION_PICK_ACTIVITY);
|
||||
pickIntent.putExtra(Intent.EXTRA_INTENT, mainIntent);
|
||||
startActivityForResult(pickIntent, REQUEST_PICK_APPLICATION);
|
||||
startActivityForResultSafely(pickIntent, REQUEST_PICK_APPLICATION);
|
||||
} else {
|
||||
startActivityForResult(intent, REQUEST_CREATE_SHORTCUT);
|
||||
startActivityForResultSafely(intent, REQUEST_CREATE_SHORTCUT);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1502,7 +1502,7 @@ public final class Launcher extends Activity
|
||||
if (folderName != null && folderName.equals(shortcutName)) {
|
||||
addFolder(mAddScreen, mAddIntersectCellX, mAddIntersectCellY);
|
||||
} else {
|
||||
startActivityForResult(intent, REQUEST_CREATE_LIVE_FOLDER);
|
||||
startActivityForResultSafely(intent, REQUEST_CREATE_LIVE_FOLDER);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user