| | |
| | | // ActivityCompat.requestPermissions(activity, new String[]{ |
| | | // Manifest.permission.WRITE_EXTERNAL_STORAGE}, RequestCode.QUICK); |
| | | try { |
| | | if (false) { |
| | | if (!hasPermissions(activity)) { |
| | | ActivityCompat.requestPermissions(activity, new String[]{ |
| | | Manifest.permission.WRITE_EXTERNAL_STORAGE}, RequestCode.QUICK); |
| | | } |
| | |
| | | if (requestCode != RequestCode.QUICK) return; |
| | | |
| | | //1768渠道一定需要权限 |
| | | if (true) { |
| | | if (hasPermissions(activity)) { |
| | | LogUtil.i("SdkManager", "onRequestPermissionsResult 申请成功"); |
| | | //申请成功 |
| | | QuickSdkMgr.I.register(PlatformDiff.I.platformProductCode(), PlatformDiff.I.platformProductKey()); |
| | |
| | | case UNKNOWN: { |
| | | if (GameActivityProxy.I.activity == null) |
| | | return; |
| | | // if (hasPermissions(GameActivityProxy.I.activity)) { |
| | | // //init(BtGameMain.I.activity); |
| | | // Toast.makeText(GameAppProxy.app, "异常请重启游戏", Toast.LENGTH_LONG).show(); |
| | | // } |
| | | if (hasPermissions(GameActivityProxy.I.activity)) { |
| | | //init(BtGameMain.I.activity); |
| | | Toast.makeText(GameAppProxy.app, "异常请重启游戏", Toast.LENGTH_LONG).show(); |
| | | } |
| | | break; |
| | | } |
| | | case SUCCEED: { |