在android 11.0原生系统中,调用系统截图功能以后,截图会发送一个通知,然后通知里面有三个
选项分享 编辑 删除等,由于客户要求去掉分享功能,所以要去掉分享按钮
通过分析工具发现GlobalScreenshot.java
中负责处理的截图的相关功能
路径为:frameworks\base\packages\SystemUI\src\com\android\systemui\screenshot\GlobalScreenshot.java
private ValueAnimator createScreenshotActionsShadeAnimation(SavedImageData imageData) {
LayoutInflater inflater = LayoutInflater.from(mContext);
mActionsView.removeAllViews();
mScreenshotLayout.invalidate(