Android 10.0 SystemUI screenshots remove the sharing function

In the android 10.0 native system, after calling the system screenshot function, the screenshot will send a notification, and then there are three
options in the notification, such as share, edit, delete, etc. Since the customer requests to remove the sharing function, it is necessary to check the SystemUI source code to see how to implement this function.

By using the Android Studio development tool to grab the layout file, it is found that the screenshot notification layout UI is
the path responsible for processing in GlobalScreenshot.java
: frameworks\base\packages\SystemUI\src\com\android\systemui\screenshot\GlobalScreenshot.java

@Override
    protected Void doInBackground(Void... paramsUnused) {
   
    
    
        if (isCancelled()) {
   
    
    
            return null;
        }</

Guess you like

Origin blog.csdn.net/baidu_41666295/article/details/124330787