Skip to content
Snippets Groups Projects
Commit 796108a8 authored by George Muresan's avatar George Muresan
Browse files

Merge branches 'master' and 'withoutbit' of...

Merge branches 'master' and 'withoutbit' of https://github.com/georgemuresan/Internship into withoutbit

# Conflicts:
#	app/src/main/java/com/example/admin/sleepbetter/FirstPage.java
#	app/src/main/java/com/example/admin/sleepbetter/SecondPage.java
parent e72f72a0
No related branches found
No related tags found
No related merge requests found
...@@ -119,8 +119,6 @@ public class FirstPage extends AppCompatActivity { ...@@ -119,8 +119,6 @@ public class FirstPage extends AppCompatActivity {
if (!isFirstRun && consent.isChecked() && !nameBox.getText().toString().equals("") && !participantID.getText().toString().equals("")) { if (!isFirstRun && consent.isChecked() && !nameBox.getText().toString().equals("") && !participantID.getText().toString().equals("")) {
//show start activity //show start activity
getSharedPreferences("PREFERENCE", MODE_PRIVATE).edit()
.putBoolean("isFirstRun", false).apply();
startActivity(new Intent(this, MainMenu.class)); startActivity(new Intent(this, MainMenu.class));
......
...@@ -30,6 +30,11 @@ public class SecondPage extends AppCompatActivity { ...@@ -30,6 +30,11 @@ public class SecondPage extends AppCompatActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_second_page); setContentView(R.layout.activity_second_page);
getSharedPreferences("PREFERENCE", MODE_PRIVATE).edit()
.putBoolean("isFirstRun", false).apply();
ImageView imageView = findViewById(R.id.imageView6); ImageView imageView = findViewById(R.id.imageView6);
imageView.setImageResource(R.drawable.night_emoticon); imageView.setImageResource(R.drawable.night_emoticon);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment