mirror of
https://github.com/openharmony/distributedschedule_samgr.git
synced 2026-07-20 03:49:28 -04:00
@@ -1844,7 +1844,7 @@ int32_t DistributedSchedService::StartAbility(const OHOS::AAFwk::Want& want, int
|
||||
if (ret != ERR_OK || ids.empty()) {
|
||||
return INVALID_PARAMETERS_ERR;
|
||||
}
|
||||
if (requestCode != DEFAULT_REQUEST_CODE) {
|
||||
if (want.GetBoolParam(Want::PARAM_RESV_FOR_RESULT, false)) {
|
||||
HILOGI("StartAbilityForResult start");
|
||||
sptr<IRemoteObject> dmsTokenCallback = new DmsTokenCallback();
|
||||
err = AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, dmsTokenCallback, requestCode, ids[0]);
|
||||
|
||||
Reference in New Issue
Block a user