Commit 85c93c54 authored by qq247321453's avatar qq247321453

provider

parent 050e000c
......@@ -468,6 +468,7 @@ public class YGOMobileActivity extends GameActivity implements
});
}
private long lasttime;
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
......@@ -503,6 +504,13 @@ public class YGOMobileActivity extends GameActivity implements
mGlobalEditText.dismiss();
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
......
......@@ -40,6 +40,7 @@ android {
buildTypes {
debug {
debuggable false
applicationIdSuffix ".debug"
buildConfigField 'boolean', 'DEBUG_MODE', 'true'
}
release {
......
......@@ -194,7 +194,7 @@
<!-- 如果已经安装过原版YGOMobile,请注释掉或修改成其他,否则会导致无法安装 -->
<provider
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:grantUriPermissions="true" />
<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