patch crash au démarage
This commit is contained in:
@@ -18,7 +18,8 @@
|
|||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
<activity android:name=".GameActivity">
|
<activity android:name=".GameActivity"
|
||||||
|
android:screenOrientation="landscape">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|||||||
@@ -554,6 +554,9 @@ public class GameLogicThread extends Thread{
|
|||||||
interrupt();
|
interrupt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* déclanche une demande de debut de tours
|
||||||
|
*/
|
||||||
public void requestEndTurn() {
|
public void requestEndTurn() {
|
||||||
if(isYourMainPhase || isYourBattlePhase)
|
if(isYourMainPhase || isYourBattlePhase)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import android.app.Activity;
|
|||||||
import android.content.pm.ActivityInfo;
|
import android.content.pm.ActivityInfo;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.Display;
|
|
||||||
import android.view.MotionEvent;
|
import android.view.MotionEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.WindowManager;
|
import android.view.WindowManager;
|
||||||
@@ -37,9 +36,11 @@ public class GameActivity extends Activity {
|
|||||||
decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN);
|
decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//changement d'orientation sur des telephones moderne
|
||||||
|
if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
|
||||||
|
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
|
||||||
|
}
|
||||||
|
|
||||||
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
|
|
||||||
Display display = getWindowManager().getDefaultDisplay();
|
|
||||||
|
|
||||||
String deck = getIntent().getStringExtra("DECK");
|
String deck = getIntent().getStringExtra("DECK");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user