Commit 3c7ed27a authored by alaskalinuxuser's avatar alaskalinuxuser
Browse files

Ver 2.0, Now minimizing/opening doesn't restart game.

parent b0dad96e
......@@ -7,8 +7,8 @@ android {
applicationId "com.alaskalinuxuser.justchess"
minSdkVersion 15
targetSdkVersion 26
versionCode 9
versionName "1.9"
versionCode 10
versionName "2.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
......
......@@ -31,7 +31,7 @@ public class IntroActivity extends AppCompatActivity {
public void onClick(View view) {
// First you define it.
Intent myintent = new Intent(IntroActivity.this, aboutActivity.class);
myintent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
//myintent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
// Now you call it.
startActivity(myintent);
}
......@@ -90,7 +90,6 @@ public class IntroActivity extends AppCompatActivity {
// First you define it.
Intent myintent = new Intent(IntroActivity.this, MainActivity.class);
myintent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
// Now you call it.
startActivity(myintent);
......@@ -107,7 +106,6 @@ public class IntroActivity extends AppCompatActivity {
// First you define it.
Intent myintent = new Intent(IntroActivity.this, MainActivity.class);
myintent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
// Now you call it.
startActivity(myintent);
......@@ -122,7 +120,6 @@ public class IntroActivity extends AppCompatActivity {
pPass = true;
// First you define it.
Intent myintent = new Intent(IntroActivity.this, MainActivity.class);
myintent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
// Now you call it.
startActivity(myintent);
} // End playDouble
......
......@@ -65,6 +65,13 @@ public class MainActivity extends AppCompatActivity {
static String moveOptions;
static int firstNum;
@Override
public void onResume(){
super.onResume();
Log.i("WJH", "Resumed.");
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
......@@ -447,7 +454,6 @@ public class MainActivity extends AppCompatActivity {
// First you define it.
Intent myintent = new Intent(MainActivity.this, IntroActivity.class);
myintent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
// Now you call it.
startActivity(myintent);
......@@ -479,9 +485,9 @@ public class MainActivity extends AppCompatActivity {
// First you define it.
Intent myintent = new Intent(MainActivity.this, IntroActivity.class);
myintent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
// Now you call it.
startActivity(myintent);
finish();
}
})
......
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