Commit aa2a8475 authored by fallenstardust's avatar fallenstardust

安卓10不申请通知,悬浮窗权限

3.6.1LOG-O
parent c5bc6988
......@@ -20,24 +20,14 @@
<pre>
更新:
1.更新ygo内核;
2.新卡SD37;
3.2020.1 OCG禁卡表(正式联机次月生效)
4.播放背景音乐(支持格式mp3,wav,ogg);
5.可文件夹内修改背景音乐以及音效(ygocore/sound);
6.可配置特定怪兽出场音乐或者音效(如sound/chants/怪兽卡数字密码.mp3);
7.丰富音效场景;
8.完善应用闪退日志收集上报机制;
2.新卡LGB1+20PP+JF20+VJ;
3.添加无效化音效;
变更:
1.变更多种音效;
2.ygopro辅助功能里支持即时音效,背景音乐开关;
3.APP设置里移除音效开关;
4.宣言等级1-12星改为多选按钮(以前是滚动列表);
5.变更自动更新接收线路(下次自动更新生效)
修复:
1.修复部分刘海屏手机点击偏移的问题;
2.修复异画卡密码显示不正确的问题;
3.修复部分手机覆盖安装后无法打开的问题;
4.修复安卓模拟器的兼容问题;
1.功能菜单与萌卡按钮移到右下角;
2.安卓10可使用决斗助手
·不需要通知,悬浮窗权限;
·需复制后打开本app才能检测;
3.同一召唤曲结束前不会重复播放;
</pre>
<h3 style="color:#ff0000">注意</h3>
<pre>
......
......@@ -8,7 +8,7 @@ android {
applicationId "cn.garymb.ygomobile"
minSdkVersion 21
targetSdkVersion 28
versionCode 360101230
versionCode 360100101
versionName "3.6.1"
flavorDimensions "versionCode"
vectorDrawables.useSupportLibrary = true
......
......@@ -3,7 +3,6 @@ package cn.garymb.ygomobile.ui.home;
import android.Manifest;
import android.annotation.SuppressLint;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
......@@ -13,14 +12,9 @@ import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import com.bumptech.glide.Glide;
import com.yuyh.library.imgsel.ISNav;
import com.yuyh.library.imgsel.common.ImageLoader;
import java.io.IOException;
import cn.garymb.ygomobile.AppsSettings;
......@@ -44,10 +38,6 @@ import static cn.garymb.ygomobile.ui.home.ResCheckTask.ResCheckListener;
import static cn.garymb.ygomobile.ui.home.ResCheckTask.getDatapath;
public class MainActivity extends HomeActivity {
private GameUriManager mGameUriManager;
private ImageUpdater mImageUpdater;
private boolean enableStart;
ResCheckTask mResCheckTask;
private final String[] PERMISSIONS = {
// Manifest.permission.RECORD_AUDIO,
Manifest.permission.READ_PHONE_STATE,
......@@ -55,6 +45,10 @@ public class MainActivity extends HomeActivity {
Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.READ_EXTERNAL_STORAGE,
};
ResCheckTask mResCheckTask;
private GameUriManager mGameUriManager;
private ImageUpdater mImageUpdater;
private boolean enableStart;
@Override
protected void onCreate(Bundle savedInstanceState) {
......@@ -138,14 +132,14 @@ public class MainActivity extends HomeActivity {
dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public void onDismiss(DialogInterface dialogInterface) {
if (AppsSettings.get().isServiceDuelAssistant())
if (AppsSettings.get().isServiceDuelAssistant() && Build.VERSION.SDK_INT != Build.VERSION_CODES.Q)
PermissionUtil.isServicePermission(MainActivity.this, true);
}
});
dialog.show();
}
} else {
if (AppsSettings.get().isServiceDuelAssistant())
if (AppsSettings.get().isServiceDuelAssistant() && Build.VERSION.SDK_INT != Build.VERSION_CODES.Q)
PermissionUtil.isServicePermission(MainActivity.this, true);
getGameUriManager().doIntent(getIntent());
}
......@@ -242,6 +236,9 @@ public class MainActivity extends HomeActivity {
IOUtils.copyFilesFromAssets(this, getDatapath(Constants.CORE_SKIN_PATH),
AppsSettings.get().getCoreSkinPath(), false);
IOUtils.copyFilesFromAssets(this, getDatapath(Constants.CORE_SOUND_PATH),
AppsSettings.get().getSoundPath(), false);
} catch (IOException e) {
e.printStackTrace();
Log.e("MainActivity", "错误" + e);
......
......@@ -34,7 +34,7 @@ public class Util {
}
public static void startDuelService(Context context) {
if (AppsSettings.get().isServiceDuelAssistant()) {
if (AppsSettings.get().isServiceDuelAssistant() && Build.VERSION.SDK_INT != Build.VERSION_CODES.Q) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
DialogPlus dialogPlus = PermissionUtil.isNotificationPermission(context);
if (dialogPlus == null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment