Commit 85c93c54 authored by qq247321453's avatar qq247321453

provider

parent 050e000c
...@@ -468,6 +468,7 @@ public class YGOMobileActivity extends GameActivity implements ...@@ -468,6 +468,7 @@ public class YGOMobileActivity extends GameActivity implements
}); });
} }
private long lasttime;
@Override @Override
public boolean onKeyDown(int keyCode, KeyEvent event) { public boolean onKeyDown(int keyCode, KeyEvent event) {
...@@ -503,6 +504,13 @@ public class YGOMobileActivity extends GameActivity implements ...@@ -503,6 +504,13 @@ public class YGOMobileActivity extends GameActivity implements
mGlobalEditText.dismiss(); mGlobalEditText.dismiss();
return; return;
} }
if (lasttime == 0 || (System.currentTimeMillis() - lasttime) < 1000) {
lasttime = System.currentTimeMillis();
Toast.makeText(this, R.string.tip_please_quit_in_game, Toast.LENGTH_SHORT).show();
return;
}
// super.onWindowFocusChanged(false);
// onGameExit();
} }
@Override @Override
......
...@@ -40,6 +40,7 @@ android { ...@@ -40,6 +40,7 @@ android {
buildTypes { buildTypes {
debug { debug {
debuggable false debuggable false
applicationIdSuffix ".debug"
buildConfigField 'boolean', 'DEBUG_MODE', 'true' buildConfigField 'boolean', 'DEBUG_MODE', 'true'
} }
release { release {
......
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
<!-- 如果已经安装过原版YGOMobile,请注释掉或修改成其他,否则会导致无法安装 --> <!-- 如果已经安装过原版YGOMobile,请注释掉或修改成其他,否则会导致无法安装 -->
<provider <provider
android:name="cn.garymb.ygomobile.ui.preference.YGOPreferencesProvider" android:name="cn.garymb.ygomobile.ui.preference.YGOPreferencesProvider"
android:authorities="cn.garymb.ygomobile.ui.preference.YGOPreferencesProvider" android:authorities="${applicationId}.ui.preference.YGOPreferencesProvider"
android:exported="false" android:exported="false"
android:grantUriPermissions="true" /> android:grantUriPermissions="true" />
<provider <provider
......
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