Commit 15396f62 authored by fallenstardust's avatar fallenstardust

fix DuelAssiatant tip & disable DuelAssistant as default

parent 59fbbd99
......@@ -31,7 +31,7 @@ public interface Constants {
String PREF_SOUND_EFFECT = "pref_key_game_sound_effect";
boolean PREF_DEF_SOUND_EFFECT = true;
String PREF_START_SERVICEDUELASSISTANT = "pref_key_start_serviceduelassistant";
boolean PREF_DEF_START_SERVICEDUELASSISTANT = true;
boolean PREF_DEF_START_SERVICEDUELASSISTANT = false;
String PREF_LOCK_SCREEN = "pref_key_game_screen_orientation";
boolean PREF_DEF_LOCK_SCREEN = false;
String PREF_IMMERSIVE_MODE = "pref_key_immersive_mode";
......
......@@ -138,14 +138,15 @@ public class MainActivity extends HomeActivity {
dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public void onDismiss(DialogInterface dialogInterface) {
PermissionUtil.isServicePermission(MainActivity.this, true);
if (AppsSettings.get().isServiceDuelAssistant())
PermissionUtil.isServicePermission(MainActivity.this, true);
}
});
dialog.show();
}
} else {
PermissionUtil.isServicePermission(MainActivity.this, true);
if (AppsSettings.get().isServiceDuelAssistant())
PermissionUtil.isServicePermission(MainActivity.this, true);
getGameUriManager().doIntent(getIntent());
}
......
......@@ -43,6 +43,7 @@ import cn.garymb.ygomobile.ui.preference.PreferenceFragmentPlus;
import cn.garymb.ygomobile.utils.FileUtils;
import cn.garymb.ygomobile.utils.IOUtils;
import cn.garymb.ygomobile.utils.SystemUtils;
import cn.garymb.ygomobile.utils.PermissionUtil;
import ocgcore.ConfigManager;
import ocgcore.DataManager;
......
......@@ -217,8 +217,8 @@
\n之后快捷加房时就会加入置顶的服务器
\n使用此功能须开启本软件悬浮窗
\n并确保本软件后台运行中</string>
<string name="EXPAND_STATUS_BAR">需要开启通知权限\n开启通知权限才能正常使用功能</string>
<string name="SYSTEM_ALERT_WINDOW">需要开启悬浮窗权限\n开启悬浮窗权限才能正常使用功能</string>
<string name="EXPAND_STATUS_BAR">需要开启通知权限\n开启权限才能正常使用决斗助手功能</string>
<string name="SYSTEM_ALERT_WINDOW">需要开启悬浮窗权限\n开启权限才能正常使用决斗助手功能</string>
<string name="OpenTIP">快捷加房使用方法</string>
<string name="Open_Alert_Window">去打开悬浮窗</string>
<string name="Function_Menu">功能菜单</string>
......
......@@ -218,8 +218,8 @@
\nthen join helper will acquiescently start in it
\npls click to APP permission to find me and open the "Pop-ups"
\nand keep the soft run in the background</string>
<string name="EXPAND_STATUS_BAR">Apply expand status bar\n then soft will work normally</string>
<string name="SYSTEM_ALERT_WINDOW">Apply Display over other APPs\n then soft will work normally</string>
<string name="EXPAND_STATUS_BAR">Apply expand status bar\n then DuelAssiatant will work normally</string>
<string name="SYSTEM_ALERT_WINDOW">Apply Display over other APPs\n then DuelAssiatant will work normally</string>
<string name="OpenTIP">about Quick Join in Game</string>
<string name="Open_Alert_Window">To Open Pop-ups</string>
<string name="Function_Menu">MENU</string>
......
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