相册解耦 图片在分享的时候无法分享到应用分身

ActivityStarter 类中 executeRequest 方法中
..........
 Pair<Integer, Pair<Intent, ActivityInfo>> mutiAppInfo =  mASWrapper.getExtImpl().getMultiAppActivityInfo(userId, intent, callingPackage, aInfo, callingUid, requestCode, startFlags, options, resolvedType, mSupervisor, mRootWindowContainer, computeResolveFilterUid(callingUid, realCallingUid, mRequest.filterCallingUid));
..........
..........
ActivityStarterExtImpl 类中 getMultiAppActivityInfo 方法中
outIntent[0] = OplusFeatureCache.get(IOplusMultiAppManager.DEFAULT).changeIntentIfNeed(outUserId, aInfo, outIntent[0], callingPackage, callingUid, requestCode,options, resolvedType, supervisor, filterCallingUid);
..........
..........
客制化的OplusMultiAppManagerService 类中 changeIntentIfNeed 方法中
..........
..........
 Intent chooserIntent = Intent.createChooser(intent, null);
 ..........
 return chooserIntent;

相较于AOSP来说,colorOS会存在上述的逻辑,在 app启动的时候,在executeRequest里 会去查询是否要改变intent,如果需要change,从而调出chooser对话框,如果不需要change,则返回null,继续走启动app的逻辑。此处过程的话,需要适配,具体细节就不多说了,保密hh

  • 7
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值