hch
2023-10-08 88e174594ae5cc112858065129fc314b997d3aa7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.secondworld.sdk.command;
 
import com.secondworld.sdk.GameActivityProxy;
import com.secondworld.sdk.PlatformDiff;
import com.secondworld.sdk.QuickSdkMgr;
import com.secondworld.sdk.utils.CodeU2A;
import com.secondworld.sdk.utils.LogUtil;
 
import org.json.JSONException;
import org.json.JSONObject;
 
public class CmdRequestPermissionStart implements ICommand {
 
    @Override
    public int getCode() {
        return CodeU2A.RequestPermissionStart;
    }
 
    @Override
    public void process(JSONObject json) throws JSONException {
        GameActivityProxy.I.activity.runOnUiThread(new Runnable()
        {
            @Override
            public void run()
            {
                LogUtil.i("SdkManager", "CmdRequestPermissionStart process");
                QuickSdkMgr.I.requestPermissions(GameActivityProxy.I.activity);
                PlatformDiff.I.StartRequestPermission();
            }
        });
    }
}